| | 2442 | * Check for the appearance of valid and non empty #email-notes |
| | 2443 | * in the comment_notes_before to remove aria-describedby in the |
| | 2444 | * email field. |
| | 2445 | * |
| | 2446 | * @since 5.3.0 |
| | 2447 | */ |
| | 2448 | $regex = '/<([\w\d]+)\b([^id\>]+)(id="email-notes")([^>]+)?>(\s+)?(?=[\d\w]+)[^\<\>]+<\/\1>/m'; |
| | 2449 | if( 0 === preg_match( $regex, $args['comment_notes_before'] ) ) { |
| | 2450 | $comment_fields['email'] = str_replace( |
| | 2451 | ' aria-describedby="email-notes"', |
| | 2452 | '', |
| | 2453 | $comment_fields['email'] |
| | 2454 | ); |
| | 2455 | } |
| | 2456 | |
| | 2457 | /** |