Make WordPress Core

Ticket #23850: general-template.php.patch

File general-template.php.patch, 896 bytes (added by WraithKenny, 12 years ago)
  • wp-includes/general-template.php

     
    147147 *
    148148 * @since 2.7.0
    149149 * @param boolean $echo Default to echo and not return the form.
    150  * @param string $format Which type to use for the search field. If set to 'html5' it changes to search input type and adds placeholder text.
    151150 * @return string|null String when retrieving, null when displaying or if searchform.php exists.
    152151 */
    153 function get_search_form( $echo = true, $format = 'xhtml' ) {
     152function get_search_form( $echo = true ) {
    154153        do_action( 'get_search_form' );
    155154
     155        $format = apply_filters( 'search_form_format', 'xhtml' );
     156
    156157        $search_form_template = locate_template( 'searchform.php' );
    157158        if ( '' != $search_form_template ) {
    158159                ob_start();