Changeset 24417
- Timestamp:
- 06/06/2013 03:31:34 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-template.php
r24377 r24417 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 ); … … 1607 1607 $user_identity = $user->exists() ? $user->display_name : ''; 1608 1608 1609 if ( ! isset( $args['format'] ) ) 1610 $args['format'] = current_theme_supports( 'html5', 'comment-form' ) ? 'html5' : 'xhtml'; 1611 1609 1612 $req = get_option( 'require_name_email' ); 1610 1613 $aria_req = ( $req ? " aria-required='true'" : '' ); 1611 $html5 = isset( $args['format'] ) &&'html5' === $args['format'];1614 $html5 = 'html5' === $args['format']; 1612 1615 $fields = array( 1613 1616 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' . -
trunk/wp-includes/general-template.php
r24225 r24417 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
Note: See TracChangeset
for help on using the changeset viewer.