Skip to content

Commit

Permalink
Update: Latest Posts Block: Use (no title) instead of (Untitled) for …
Browse files Browse the repository at this point in the history
…untitled posts (#17074)
  • Loading branch information
donmhico authored and ajitbohra committed Aug 17, 2019
1 parent 15f5ff4 commit d80b024
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/latest-posts/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class LatestPostsEdit extends Component {
{ titleTrimmed }
</RawHTML>
) :
__( '(Untitled)' )
__( '(no title)' )
}
</a>
{ displayPostDate && post.date_gmt &&
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/latest-posts/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function render_block_core_latest_posts( $attributes ) {
foreach ( $recent_posts as $post ) {
$title = get_the_title( $post );
if ( ! $title ) {
$title = __( '(Untitled)' );
$title = __( '(no title)' );
}
$list_items_markup .= sprintf(
'<li><a href="%1$s">%2$s</a>',
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/rss/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function render_block_core_rss( $attributes ) {
foreach ( $rss_items as $item ) {
$title = esc_html( trim( strip_tags( $item->get_title() ) ) );
if ( empty( $title ) ) {
$title = __( '(Untitled)' );
$title = __( '(no title)' );
}
$link = $item->get_link();
$link = esc_url( $link );
Expand Down

0 comments on commit d80b024

Please sign in to comment.