Ticket #23850: 23850.3.diff
File 23850.3.diff, 1.2 KB (added by , 12 years ago) |
---|
-
wp-includes/comment-template.php
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', 'comments' ) ) ? 'html5' : 'xhtml'; 1613 1611 1614 $req = get_option( 'require_name_email' ); 1612 1615 $aria_req = ( $req ? " aria-required='true'" : '' ); 1613 1616 $html5 = isset( $args['format'] ) && 'html5' === $args['format']; -
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' ) ) ? 'html5' : 'xhtml'; 159 159 $format = apply_filters( 'search_form_format', $format ); 160 160 161 161 $search_form_template = locate_template( 'searchform.php' );