diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php
index 9f945a9e3e..8375fee4a6 100644
|
a
|
b
|
function comment_form( $args = array(), $post_id = null ) { |
| 2433 | 2433 | $args = array_merge( $defaults, $args ); |
| 2434 | 2434 | |
| 2435 | 2435 | // Remove aria-describedby from the email field if there's no associated description. |
| 2436 | | if ( false === strpos( $args['comment_notes_before'], 'id="email-notes"' ) ) { |
| | 2436 | if ( ! empty( $args['fields']['email'] ) && false === strpos( $args['comment_notes_before'], 'id="email-notes"' ) ) { |
| 2437 | 2437 | $args['fields']['email'] = str_replace( |
| 2438 | 2438 | ' aria-describedby="email-notes"', |
| 2439 | 2439 | '', |