WordPress.org

Make WordPress Core

Ticket #23848: html5_search_widget.patch

File html5_search_widget.patch, 568 bytes (added by WraithKenny, 13 months ago)
  • wp-includes/default-widgets.php

     wp-includes/default-widgets.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php
    index d307ec3..8fe60d9 100644
    a b class WP_Widget_Search extends WP_Widget { 
    203203                        echo $before_title . $title . $after_title; 
    204204 
    205205                // Use current theme search form if it exists 
    206                 get_search_form(); 
     206                get_search_form( true, apply_filters( 'widget_searchform_format', 'xhtml' ) ); 
    207207 
    208208                echo $after_widget; 
    209209        }