From 431e2fafae9a515fde17c1182921f2bc35d92061 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Sat, 18 Aug 2012 19:44:47 -0500 Subject: [PATCH] Fix #513 - Fix strict errors --- functions.php | 1 + inc/cleanup.php | 4 ++-- inc/config.php | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 55d456d..c61f413 100644 --- a/functions.php +++ b/functions.php @@ -1,4 +1,5 @@ \n"; } - function start_el(&$output, $item, $depth, $args) { + function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) { global $wp_query; $indent = ($depth) ? str_repeat("\t", $depth) : ''; diff --git a/inc/config.php b/inc/config.php index 334e27f..e3a657b 100644 --- a/inc/config.php +++ b/inc/config.php @@ -30,10 +30,11 @@ function roots_sidebar_class() { echo 'span4'; } +$get_theme_name = explode('/themes/', get_template_directory()); define('GOOGLE_ANALYTICS_ID', ''); // UA-XXXXX-Y define('POST_EXCERPT_LENGTH', 40); define('WP_BASE', wp_base_dir()); -define('THEME_NAME', next(explode('/themes/', get_template_directory()))); +define('THEME_NAME', next($get_theme_name)); define('RELATIVE_PLUGIN_PATH', str_replace(site_url() . '/', '', plugins_url())); define('FULL_RELATIVE_PLUGIN_PATH', WP_BASE . '/' . RELATIVE_PLUGIN_PATH); define('RELATIVE_CONTENT_PATH', str_replace(site_url() . '/', '', content_url()));