Make WordPress Core


Ignore:
Timestamp:
06/06/2013 05:20:40 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: Remove twentythirteen_search_form_format() filter in favor of add_theme_support() call for search form, comment form, and comment list markup. Props SergeyBiryukov, fixes #24269; see #23850.

File:
1 edited

Legend:

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

    r24405 r24421  
    7777    // Adds RSS feed links to <head> for posts and comments.
    7878    add_theme_support( 'automatic-feed-links' );
     79
     80    // Switches default core markup for search form to output valid HTML5.
     81    add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) );
    7982
    8083    /*
     
    554557
    555558/**
    556  * Switches default core markup for search form to output valid HTML5.
    557  *
    558  * @param string $format Expected markup format, default is `xhtml`
    559  * @return string Twenty Thirteen loves HTML5.
    560  */
    561 function twentythirteen_search_form_format( $format ) {
    562     return 'html5';
    563 }
    564 add_filter( 'search_form_format', 'twentythirteen_search_form_format' );
    565 
    566 /**
    567559 * Add postMessage support for site title and description for the Customizer.
    568560 *
Note: See TracChangeset for help on using the changeset viewer.