Changeset 43919 for branches/5.0/src/wp-includes/blocks/latest-comments.php
- Timestamp:
- 11/21/2018 03:08:01 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/blocks/latest-comments.php
r43801 r43919 30 30 $title = get_the_title( $post ); 31 31 if ( empty( $title ) ) { 32 $title = __( '(no title)' , 'gutenberg');32 $title = __( '(no title)' ); 33 33 } 34 34 return esc_html( $title ); … … 99 99 $list_items_markup .= sprintf( 100 100 /* translators: 1: author name (inside <a> or <span> tag, based on if they have a URL), 2: post title related to this comment */ 101 __( '%1$s on %2$s' , 'gutenberg'),101 __( '%1$s on %2$s' ), 102 102 $author_markup, 103 103 $post_title … … 120 120 121 121 $class = 'wp-block-latest-comments'; 122 if ( $attributes['align']) {122 if ( isset( $attributes['align'] ) ) { 123 123 $class .= " align{$attributes['align']}"; 124 124 } … … 144 144 '<div class="%1$s">%2$s</div>', 145 145 $classnames, 146 __( 'No comments to show.' , 'gutenberg')146 __( 'No comments to show.' ) 147 147 ); 148 148
Note: See TracChangeset
for help on using the changeset viewer.