Ticket #23850: 23850.5.patch
File 23850.5.patch, 1.9 KB (added by , 12 years ago) |
---|
-
wp-includes/general-template.php
155 155 function get_search_form( $echo = true ) { 156 156 do_action( 'pre_get_search_form' ); 157 157 158 $format = ( current_theme_supports( 'html5 -search-form' ) ) ? 'html5' : 'xhtml';158 $format = ( current_theme_supports( 'html5', 'search-form' ) ) ? 'html5' : 'xhtml'; 159 159 $format = apply_filters( 'search_form_format', $format ); 160 160 161 161 $search_form_template = locate_template( 'searchform.php' ); -
wp-includes/comment-template.php
1506 1506 'avatar_size' => 32, 1507 1507 'reverse_top_level' => null, 1508 1508 'reverse_children' => '', 1509 'format' => 'xhtml', // or html51509 'format' => ( current_theme_supports( 'html5', 'comment-list' ) ) ? 'html5' : 'xhtml', 1510 1510 'short_ping' => false, 1511 1511 ); 1512 1512 … … 1608 1608 $user = wp_get_current_user(); 1609 1609 $user_identity = $user->exists() ? $user->display_name : ''; 1610 1610 1611 if ( ! isset( $args['format'] ) ) 1612 $args['format'] = ( current_theme_supports( 'html5', 'comment-form' ) ) ? 'html5' : 'xhtml'; 1613 1611 1614 $req = get_option( 'require_name_email' ); 1612 1615 $aria_req = ( $req ? " aria-required='true'" : '' ); 1613 $html5 = isset( $args['format'] ) &&'html5' === $args['format'];1616 $html5 = 'html5' === $args['format']; 1614 1617 $fields = array( 1615 1618 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' . 1616 1619 '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',