Make WordPress Core

Ticket #23701: 23701.3.diff

File 23701.3.diff, 3.0 KB (added by lancewillett, 12 years ago)
  • wp-content/themes/twentythirteen/404.php

     
    2121                                        <h2><?php _e( 'This is somewhat embarrassing, isn&rsquo;t it?', 'twentythirteen' ); ?></h2>
    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 -->
    2727
  • wp-content/themes/twentythirteen/content-none.php

     
    2020        <?php elseif ( is_search() ) : ?>
    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; ?>
    3131</div><!-- .page-content -->
  • wp-content/themes/twentythirteen/header.php

     
    5151                                        <h3 class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></h3>
    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 -->
    5757                </header><!-- #masthead -->
  • wp-content/themes/twentythirteen/functions.php

     
    548548add_filter( 'the_content', 'twentythirteen_aside_date', 8 ); // After embeds, before everything else.
    549549
    550550/**
     551 * Switches default core markup for search form to output valid HTML5.
     552 *
     553 * @param string $format Expected markup format, default is `xhtml`
     554 * @return string Twenty Thirteen loves HTML5.
     555 */
     556function twentythirteen_searchform_format( $format ) {
     557        return 'html5';
     558}
     559add_filter( 'search_form_format', 'twentythirteen_searchform_format' );
     560
     561/**
    551562 * Add postMessage support for site title and description for the Customizer.
    552563 *
    553564 * @since Twenty Thirteen 1.0