1
0

Removed 'role' attribute from Wordpress search widget

This commit is contained in:
Aaron Lindsay 2011-02-26 08:42:40 -07:00
parent ea7af0c74e
commit f9a38056d4

View File

@ -86,6 +86,15 @@ function kubrick_header_display_string() {
return $display ? $display : 'inline';
}
/* Begin valid search box fix (via http://www.dwightjack.com/diary/2010/03/12/fix-role-attribute-in-wordpress-search-widget/)
* This removes the 'role' attribute from the HTML to make it valid.
*/
function valid_search_form ($form) {
return str_replace('role="search" ', '', $form);
}
add_filter('get_search_form', 'valid_search_form');
/* End valid search box fix */
add_action('admin_menu', 'kubrick_add_theme_page');
function kubrick_add_theme_page() {