equal
deleted
inserted
replaced
121 ); |
121 ); |
122 |
122 |
123 if ( isset( $attributes['displayAuthor'] ) && $attributes['displayAuthor'] ) { |
123 if ( isset( $attributes['displayAuthor'] ) && $attributes['displayAuthor'] ) { |
124 $author_display_name = get_the_author_meta( 'display_name', $post->post_author ); |
124 $author_display_name = get_the_author_meta( 'display_name', $post->post_author ); |
125 |
125 |
126 /* translators: byline. %s: current author. */ |
126 /* translators: byline. %s: author. */ |
127 $byline = sprintf( __( 'by %s' ), $author_display_name ); |
127 $byline = sprintf( __( 'by %s' ), $author_display_name ); |
128 |
128 |
129 if ( ! empty( $author_display_name ) ) { |
129 if ( ! empty( $author_display_name ) ) { |
130 $list_items_markup .= sprintf( |
130 $list_items_markup .= sprintf( |
131 '<div class="wp-block-latest-posts__post-author">%1$s</div>', |
131 '<div class="wp-block-latest-posts__post-author">%1$s</div>', |