Changeset 55257 for trunk/src/wp-includes/blocks/read-more.php
- Timestamp:
- 02/07/2023 12:57:52 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/read-more.php
r55246 r55257 19 19 } 20 20 21 $post_ID = $block->context['postId']; 22 $post_title = get_the_title( $post_ID ); 21 $post_ID = $block->context['postId']; 22 $post_title = get_the_title( $post_ID ); 23 if ( '' === $post_title ) { 24 $post_title = sprintf( 25 /* translators: %s is post ID to describe the link for screen readers. */ 26 __( 'untitled post %s' ), 27 $post_ID 28 ); 29 } 23 30 $screen_reader_text = sprintf( 24 31 /* translators: %s is either the post title or post ID to describe the link for screen readers. */ 25 32 __( ': %s' ), 26 '' !== $post_title ? $post_title : __( 'untitled post ' ) . $post_ID33 $post_title 27 34 ); 28 35 $justify_class_name = empty( $attributes['justifyContent'] ) ? '' : "is-justified-{$attributes['justifyContent']}";
Note: See TracChangeset
for help on using the changeset viewer.