diff --git a/src/readme.html b/src/readme.html index ff0c310fbc..c65184ccdc 100644 --- a/src/readme.html +++ b/src/readme.html @@ -2,10 +2,10 @@
- - + +%s [%s]%s
%s [%s]%s
%1$s %2$s
', where %1$s is the * submit button markup and %2$s is the comment hidden fields. - * @type string $format The comment form format. Default 'xhtml'. Accepts 'xhtml', 'html5'. * } * @param int|WP_Post $post Optional. Post ID or WP_Post object to generate the form for. Default current post. */ @@ -2519,16 +2516,12 @@ function comment_form( $args = array(), $post = null ) { $user_identity = $user->exists() ? $user->display_name : ''; $args = wp_parse_args( $args ); - if ( ! isset( $args['format'] ) ) { - $args['format'] = current_theme_supports( 'html5', 'comment-form' ) ? 'html5' : 'xhtml'; - } $req = get_option( 'require_name_email' ); - $html5 = 'html5' === $args['format']; - // Define attributes in HTML5 or XHTML syntax. - $required_attribute = ( $html5 ? ' required' : ' required="required"' ); - $checked_attribute = ( $html5 ? ' checked' : ' checked="checked"' ); + // Define attributes. + $required_attribute = ' required'; + $checked_attribute = ' checked'; // Identify required fields visually and create a message about the indicator. $required_indicator = ' ' . wp_required_field_indicator(); @@ -2543,7 +2536,7 @@ function comment_form( $args = array(), $post = null ) { ( $req ? $required_indicator : '' ) ), sprintf( - '', + '', esc_attr( $commenter['comment_author'] ), ( $req ? $required_attribute : '' ) ) @@ -2556,8 +2549,7 @@ function comment_form( $args = array(), $post = null ) { ( $req ? $required_indicator : '' ) ), sprintf( - '', - ( $html5 ? 'type="email"' : 'type="text"' ), + '', esc_attr( $commenter['comment_author_email'] ), ( $req ? $required_attribute : '' ) ) @@ -2569,8 +2561,7 @@ function comment_form( $args = array(), $post = null ) { __( 'Website' ) ), sprintf( - '', - ( $html5 ? 'type="url"' : 'type="text"' ), + '', esc_attr( $commenter['comment_author_url'] ) ) ), @@ -2582,7 +2573,7 @@ function comment_form( $args = array(), $post = null ) { $fields['cookies'] = sprintf( ' ', sprintf( - '', + '', $consent ), sprintf( @@ -2663,9 +2654,8 @@ function comment_form( $args = array(), $post = null ) { 'cancel_reply_after' => '', 'cancel_reply_link' => __( 'Cancel reply' ), 'label_submit' => __( 'Post Comment' ), - 'submit_button' => '', + 'submit_button' => '', 'submit_field' => '%1$s %2$s
', - 'format' => 'xhtml', ); /** diff --git a/src/wp-includes/customize/class-wp-customize-color-control.php b/src/wp-includes/customize/class-wp-customize-color-control.php index 14d5abcdb7..54173f5e98 100644 --- a/src/wp-includes/customize/class-wp-customize-color-control.php +++ b/src/wp-includes/customize/class-wp-customize-color-control.php @@ -111,9 +111,9 @@ public function content_template() {{{ data.description }}
diff --git a/src/wp-includes/customize/class-wp-customize-site-icon-control.php b/src/wp-includes/customize/class-wp-customize-site-icon-control.php index bf3bb79d4d..f877b9b2e3 100644 --- a/src/wp-includes/customize/class-wp-customize-site-icon-control.php +++ b/src/wp-includes/customize/class-wp-customize-site-icon-control.php @@ -63,14 +63,14 @@ public function content_template() { <# if ( data.attachment.sizes ) { #> <# } #>