From f099d03f84546ef3767f5df2f9c319e537a0ad26 Mon Sep 17 00:00:00 2001 From: koopersmith Date: Sat, 12 Nov 2011 00:26:55 +0000 Subject: [PATCH] Improve admin bar markup. Un-nest top level secondary menu. Remove unnecessary span. see #18197. git-svn-id: http://svn.automattic.com/wordpress/trunk@19261 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-admin-bar.php | 24 +++------- wp-includes/css/admin-bar.css | 2 +- wp-includes/css/admin-bar.dev.css | 75 +++++++++++------------------- wp-includes/script-loader.php | 2 +- 4 files changed, 35 insertions(+), 68 deletions(-) diff --git a/wp-includes/class-wp-admin-bar.php b/wp-includes/class-wp-admin-bar.php index b3b16bc1b6..e6aae5cc37 100644 --- a/wp-includes/class-wp-admin-bar.php +++ b/wp-includes/class-wp-admin-bar.php @@ -142,15 +142,13 @@ class WP_Admin_Bar { $this->recursive_render( $node ); } - if ( ! empty( $this->root->children->secondary ) ): - ?> + @@ -187,27 +185,19 @@ class WP_Admin_Bar { ?>>title; - if ( $is_parent ) : - ?>