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
This commit is contained in:
Andrew Ozz 2011-11-04 18:11:33 +00:00
parent 242b3f48e4
commit dab902ceab
1 changed files with 2 additions and 4 deletions

View File

@ -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'
)
) );
}