Make WordPress Core

Ticket #23850: 23850.3.diff

File 23850.3.diff, 1.2 KB (added by SergeyBiryukov, 12 years ago)
  • wp-includes/comment-template.php

     
    16081608        $user = wp_get_current_user();
    16091609        $user_identity = $user->exists() ? $user->display_name : '';
    16101610
     1611        if ( ! isset( $args['format'] ) )
     1612                $args['format'] = ( current_theme_supports( 'html5', 'comments' ) ) ? 'html5' : 'xhtml';
     1613
    16111614        $req      = get_option( 'require_name_email' );
    16121615        $aria_req = ( $req ? " aria-required='true'" : '' );
    16131616        $html5    = isset( $args['format'] ) && 'html5' === $args['format'];
  • wp-includes/general-template.php

     
    155155function get_search_form( $echo = true ) {
    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' ) ) ? 'html5' : 'xhtml';
    159159        $format = apply_filters( 'search_form_format', $format );
    160160
    161161        $search_form_template = locate_template( 'searchform.php' );