From e35199deb69b27c98b6d2deadc99284a52c0881a Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 23 Feb 2010 19:28:41 +0000 Subject: [PATCH] More output consolidation. see #11817 git-svn-id: http://svn.automattic.com/wordpress/trunk@13336 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/custom-navigation.php | 71 +++++++++++-------- wp-includes/default-widgets.php | 114 +++++++++--------------------- 2 files changed, 74 insertions(+), 111 deletions(-) diff --git a/wp-includes/custom-navigation.php b/wp-includes/custom-navigation.php index 20928a08ef..a12b744f06 100644 --- a/wp-includes/custom-navigation.php +++ b/wp-includes/custom-navigation.php @@ -136,6 +136,7 @@ function setup_menu_item($menu_item, $type = 'item', $position = 0) { if ( $menu_item->ID == $wp_query->get_queried_object_id() ) $menu_item->li_class = 'class="current_page_item"'; + $menu_item->anchor_title = ''; /* @todo: update to use tax/post data //SET anchor title @@ -163,7 +164,7 @@ function setup_menu_item($menu_item, $type = 'item', $position = 0) { return $menu_item; } -function output_menu_item($menu_item, $context) { +function output_menu_item($menu_item, $context, $args = array() ) { switch( $context ) { case 'backend': case 'menu': @@ -195,6 +196,44 @@ function output_menu_item($menu_item, $context) { + + target; ?>>title . $args['after_title']; ?>description; ?>description; ?> + +
+
+ + + title; ?> <?php esc_attr_e('Add to Custom Menu'); ?>
+