Changeset 55988 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 06/22/2023 02:34:56 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r55749 r55988 971 971 972 972 // Replace '% Comments' with a proper plural form. 973 if ( $text && ! preg_match( '/[0-9]+/', $text ) && false !== strpos( $more, '%' ) ) {973 if ( $text && ! preg_match( '/[0-9]+/', $text ) && str_contains( $more, '%' ) ) { 974 974 /* translators: %s: Number of comments. */ 975 975 $new_text = _n( '%s Comment', '%s Comments', $comments_number ); … … 977 977 978 978 $more = str_replace( $text, $new_text, $more ); 979 if ( false === strpos( $more, '%' ) ) {979 if ( ! str_contains( $more, '%' ) ) { 980 980 $more = '% ' . $more; 981 981 } … … 2652 2652 2653 2653 // Remove `aria-describedby` from the email field if there's no associated description. 2654 if ( isset( $args['fields']['email'] ) && false === strpos( $args['comment_notes_before'], 'id="email-notes"' ) ) {2654 if ( isset( $args['fields']['email'] ) && ! str_contains( $args['comment_notes_before'], 'id="email-notes"' ) ) { 2655 2655 $args['fields']['email'] = str_replace( 2656 2656 ' aria-describedby="email-notes"',
Note: See TracChangeset
for help on using the changeset viewer.