Twenty Thirteen: remove HTML5 argument for search form, using a filter instead. See #23850, closes #23701.
git-svn-id: http://core.svn.wordpress.org/trunk@23799 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3caeec8f9a
commit
f8a9f1dd3e
|
@ -21,7 +21,7 @@ get_header(); ?>
|
|||
<h2><?php _e( 'This is somewhat embarrassing, isn’t it?', 'twentythirteen' ); ?></h2>
|
||||
<p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentythirteen' ); ?></p>
|
||||
|
||||
<?php get_search_form( true, 'html5' ); ?>
|
||||
<?php get_search_form(); ?>
|
||||
</div><!-- .page-content -->
|
||||
</div><!-- .page-wrapper -->
|
||||
|
||||
|
|
|
@ -20,12 +20,12 @@
|
|||
<?php elseif ( is_search() ) : ?>
|
||||
|
||||
<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with different keywords.', 'twentythirteen' ); ?></p>
|
||||
<?php get_search_form( true, 'html5' ); ?>
|
||||
<?php get_search_form(); ?>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentythirteen' ); ?></p>
|
||||
<?php get_search_form( true, 'html5' ); ?>
|
||||
<?php get_search_form(); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
</div><!-- .page-content -->
|
||||
|
|
|
@ -545,6 +545,17 @@ function twentythirteen_aside_date( $content ) {
|
|||
}
|
||||
add_filter( 'the_content', 'twentythirteen_aside_date', 8 ); // After embeds, before everything else.
|
||||
|
||||
/**
|
||||
* Switches default core markup for search form to output valid HTML5.
|
||||
*
|
||||
* @param string $format Expected markup format, default is `xhtml`
|
||||
* @return string Twenty Thirteen loves HTML5.
|
||||
*/
|
||||
function twentythirteen_searchform_format( $format ) {
|
||||
return 'html5';
|
||||
}
|
||||
add_filter( 'search_form_format', 'twentythirteen_searchform_format' );
|
||||
|
||||
/**
|
||||
* Add postMessage support for site title and description for the Customizer.
|
||||
*
|
||||
|
|
|
@ -51,7 +51,7 @@ $html_class = ( is_admin_bar_showing() ) ? 'wp-toolbar' : '';
|
|||
<h3 class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></h3>
|
||||
<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>
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
|
||||
<?php get_search_form( true, 'html5' ); ?>
|
||||
<?php get_search_form(); ?>
|
||||
</nav><!-- #site-navigation -->
|
||||
</div><!-- #navbar -->
|
||||
</header><!-- #masthead -->
|
||||
|
|
Loading…
Reference in New Issue