WordPress.org

Make WordPress Core

Changeset 23799


Ignore:
Timestamp:
03/26/2013 08:34:37 PM (8 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: remove HTML5 argument for search form, using a filter instead. See #23850, closes #23701.

Location:
trunk/wp-content/themes/twentythirteen
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/404.php

    r23755 r23799  
    2222                    <p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentythirteen' ); ?></p>
    2323
    24                     <?php get_search_form( true, 'html5' ); ?>
     24                    <?php get_search_form(); ?>
    2525                </div><!-- .page-content -->
    2626            </div><!-- .page-wrapper -->
  • trunk/wp-content/themes/twentythirteen/content-none.php

    r23755 r23799  
    2121
    2222    <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with different keywords.', 'twentythirteen' ); ?></p>
    23     <?php get_search_form( true, 'html5' ); ?>
     23    <?php get_search_form(); ?>
    2424
    2525    <?php else : ?>
    2626
    2727    <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentythirteen' ); ?></p>
    28     <?php get_search_form( true, 'html5' ); ?>
     28    <?php get_search_form(); ?>
    2929
    3030    <?php endif; ?>
  • trunk/wp-content/themes/twentythirteen/functions.php

    r23795 r23799  
    547547
    548548/**
     549 * Switches default core markup for search form to output valid HTML5.
     550 *
     551 * @param string $format Expected markup format, default is `xhtml`
     552 * @return string Twenty Thirteen loves HTML5.
     553 */
     554function twentythirteen_searchform_format( $format ) {
     555    return 'html5';
     556}
     557add_filter( 'search_form_format', 'twentythirteen_searchform_format' );
     558
     559/**
    549560 * Add postMessage support for site title and description for the Customizer.
    550561 *
  • trunk/wp-content/themes/twentythirteen/header.php

    r23680 r23799  
    5252                    <a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentythirteen' ); ?>"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a>
    5353                    <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
    54                     <?php get_search_form( true, 'html5' ); ?>
     54                    <?php get_search_form(); ?>
    5555                </nav><!-- #site-navigation -->
    5656            </div><!-- #navbar -->
Note: See TracChangeset for help on using the changeset viewer.