Fix #513 - Fix strict errors
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
error_reporting( E_ALL | E_STRICT );
|
||||
/**
|
||||
* Roots functions
|
||||
*/
|
||||
|
||||
@@ -434,11 +434,11 @@ class Roots_Nav_Walker extends Walker_Nav_Menu {
|
||||
return preg_match('/(current[-_])|active|dropdown/', $classes);
|
||||
}
|
||||
|
||||
function start_lvl(&$output, $depth) {
|
||||
function start_lvl(&$output, $depth = 0, $args = array()) {
|
||||
$output .= "\n<ul class=\"dropdown-menu\">\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) : '';
|
||||
|
||||
|
||||
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user