WordPress.org

Make WordPress Core

Ticket #24269: 24269.1.patch

File 24269.1.patch, 1.2 KB (added by lancewillett, 11 months ago)
  • wp-content/themes/twentythirteen/functions.php

     
    7777        // Adds RSS feed links to <head> for posts and comments. 
    7878        add_theme_support( 'automatic-feed-links' ); 
    7979 
     80        // Switches default core markup for search form to output valid HTML5. 
     81        add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) ); 
     82 
    8083        /* 
    8184         * This theme supports all available post formats by default. 
    8285         * See http://codex.wordpress.org/Post_Formats 
     
    523526add_action( 'shortcode_atts_video', 'twentythirteen_video_width' ); 
    524527 
    525528/** 
    526  * Switches default core markup for search form to output valid HTML5. 
    527  * 
    528  * @param string $format Expected markup format, default is `xhtml` 
    529  * @return string Twenty Thirteen loves HTML5. 
    530  */ 
    531 function twentythirteen_search_form_format( $format ) { 
    532         return 'html5'; 
    533 } 
    534 add_filter( 'search_form_format', 'twentythirteen_search_form_format' ); 
    535  
    536 /** 
    537529 * Add postMessage support for site title and description for the Customizer. 
    538530 * 
    539531 * @since Twenty Thirteen 1.0