WordPress.org

Make WordPress Core

Ticket #19180: patch.patch

File patch.patch, 809 bytes (added by usermrpapa, 4 years ago)

patch for admin bar validation issue

  • wp-includes/admin-bar.php

     
    620620function wp_admin_bar_search_menu( $wp_admin_bar ) { 
    621621        $form  = '<div id="adminbarsearch-wrap">'; 
    622622        $form .= '<form action="' . home_url() . '" method="get" id="adminbarsearch">'; 
    623         $form .= '<input class="adminbar-input" name="s" id="adminbar-search" tabindex="1"'; 
     623        $form .= '<input class="adminbar-input" name="s" id="adminbar-search" tabindex="1" '; 
    624624        $form .= 'type="text" value="" maxlength="150" placeholder="' . esc_attr__( 'Search' ) . '" onclick="return false;" />'; 
    625625        $form .= '<input type="submit" class="adminbar-button" value="' . __('Search') . '"/>'; 
    626626        $form .= '</form>';