From dab902ceabd93dfd50e4a5b92bcd822aa03bc13e Mon Sep 17 00:00:00 2001 From: Andrew Ozz 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: https://develop.svn.wordpress.org/trunk@19159 602fd350-edb4-49c9-b593-d223f7449a82 --- 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' + ) ) ); }