WordPress.org

Make WordPress Core

Changeset 24417


Ignore:
Timestamp:
06/06/13 15:31:34 (11 months ago)
Author:
nacin
Message:

`add_theme_support( 'html5', array( 'comment-list', 'search-form', 'comment-form' ) );'

props obenland.
see #23850.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r24377 r24417  
    15071507        'reverse_top_level' => null, 
    15081508        'reverse_children'  => '', 
    1509         'format'            => 'xhtml', // or html5 
     1509        'format'            => current_theme_supports( 'html5', 'comment-list' ) ? 'html5' : 'xhtml', 
    15101510        'short_ping'        => false, 
    15111511    ); 
     
    16071607    $user_identity = $user->exists() ? $user->display_name : ''; 
    16081608 
     1609    if ( ! isset( $args['format'] ) ) 
     1610        $args['format'] = current_theme_supports( 'html5', 'comment-form' ) ? 'html5' : 'xhtml'; 
     1611 
    16091612    $req      = get_option( 'require_name_email' ); 
    16101613    $aria_req = ( $req ? " aria-required='true'" : '' ); 
    1611     $html5    = isset( $args['format'] ) && 'html5' === $args['format']; 
     1614    $html5    = 'html5' === $args['format']; 
    16121615    $fields   =  array( 
    16131616        'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' . 
  • trunk/wp-includes/general-template.php

    r24225 r24417  
    156156    do_action( 'pre_get_search_form' ); 
    157157 
    158     $format = ( current_theme_supports( 'html5-search-form' ) ) ? 'html5' : 'xhtml'; 
     158    $format = current_theme_supports( 'html5', 'search-form' ) ? 'html5' : 'xhtml'; 
    159159    $format = apply_filters( 'search_form_format', $format ); 
    160160 
Note: See TracChangeset for help on using the changeset viewer.