From c7e8fc7675f4b49f4a0ad12db570788aab21aeab Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sun, 21 Feb 2010 10:55:47 +0000 Subject: [PATCH] Set svn:eol-style on new navigation file, Temporarily fix Notice in Menu code. See #11817 git-svn-id: https://develop.svn.wordpress.org/trunk@13280 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/custom-navigation.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/custom-navigation.php b/wp-includes/custom-navigation.php index 918cd4cb8d..9e58a738f8 100644 --- a/wp-includes/custom-navigation.php +++ b/wp-includes/custom-navigation.php @@ -167,6 +167,8 @@ function wp_custom_navigation_output($args = array()) { $target = 'target="_blank"'; break; } + + $li_class = ''; /* @todo: update to use tax/post data //SET anchor title @@ -180,9 +182,6 @@ function wp_custom_navigation_output($args = array()) { if ($queried_id == $wp_custom_nav_menu_items->post_id) { $li_class = 'class="current_page_item"'; } - else { - $li_class = ''; - } if (isset($wp_custom_nav_menu_items->new_window)) { if ($wp_custom_nav_menu_items->new_window > 0) {