From f75b8a03950ad44c1cee37150d2129cc598c30bd Mon Sep 17 00:00:00 2001 From: dd32 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: http://svn.automattic.com/wordpress/trunk@13280 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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) {