Removed 'role' attribute from Wordpress search widget
This commit is contained in:
parent
ea7af0c74e
commit
f9a38056d4
@ -86,6 +86,15 @@ function kubrick_header_display_string() {
|
|||||||
return $display ? $display : 'inline';
|
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');
|
add_action('admin_menu', 'kubrick_add_theme_page');
|
||||||
|
|
||||||
function kubrick_add_theme_page() {
|
function kubrick_add_theme_page() {
|
||||||
|
Loading…
Reference in New Issue
Block a user