Move helper constants to config.php

This commit is contained in:
Ben Word
2013-06-23 12:13:15 -05:00
parent 7c13142f96
commit ccb79488c9
2 changed files with 10 additions and 8 deletions

View File

@@ -26,11 +26,3 @@ add_action('after_setup_theme', 'roots_setup');
// Backwards compatibility for older than PHP 5.3.0
if (!defined('__DIR__')) { define('__DIR__', dirname(__FILE__)); }
// Define helper constants
$get_theme_name = explode('/themes/', get_template_directory());
define('RELATIVE_PLUGIN_PATH', str_replace(home_url() . '/', '', plugins_url()));
define('RELATIVE_CONTENT_PATH', str_replace(home_url() . '/', '', content_url()));
define('THEME_NAME', next($get_theme_name));
define('THEME_PATH', RELATIVE_CONTENT_PATH . '/themes/' . THEME_NAME);