From 339fe6065d77519cefa1f4ce604b8803cd289c70 Mon Sep 17 00:00:00 2001 From: azaozz Date: Fri, 4 Nov 2011 18:11:33 +0000 Subject: [PATCH] Do the ToDo in wp_admin_bar_search_menu(), props ocean90, fixes #19152 git-svn-id: http://svn.automattic.com/wordpress/trunk@19159 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/admin-bar.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index 6eb7cb83e9..031c04704f 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -631,10 +631,8 @@ function wp_admin_bar_search_menu( $wp_admin_bar ) { 'title' => $form, 'href' => '#', 'meta' => array( - 'class' => 'admin-bar-search', - // @TODO: Replace me with something far less hacky - 'onclick' => 'if ( event.target.value != "Search" ) { return false; }', - ), + 'class' => 'admin-bar-search' + ) ) ); }