Skip to content

Instantly share code, notes, and snippets.

@giiska
Created December 22, 2014 01:45
Show Gist options
  • Save giiska/ea877a0cc8b24a79cf07 to your computer and use it in GitHub Desktop.
Save giiska/ea877a0cc8b24a79cf07 to your computer and use it in GitHub Desktop.
WP_CONTENT_URL WP_CONTENT_DIR defines
<?php
// Pre-2.6 compatibility
if( !defined('WP_CONTENT_URL') )
define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
if( !defined('WP_CONTENT_DIR') )
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment