diff --git src/wp-includes/blocks/archives.php src/wp-includes/blocks/archives.php
index adcc61c233..012270eb7b 100644
|
|
|
2 | 2 | /** |
3 | 3 | * Server-side rendering of the `core/archives` block. |
4 | 4 | * |
5 | | * @package gutenberg |
| 5 | * @package WordPress |
6 | 6 | */ |
7 | 7 | |
8 | 8 | /** |
… |
… |
function render_block_core_archives( $attributes ) { |
30 | 30 | if ( ! empty( $attributes['displayAsDropdown'] ) ) { |
31 | 31 | |
32 | 32 | $dropdown_id = esc_attr( uniqid( 'wp-block-archives-' ) ); |
33 | | $title = __( 'Archives', 'gutenberg' ); |
| 33 | $title = __( 'Archives' ); |
34 | 34 | |
35 | 35 | /** This filter is documented in wp-includes/widgets/class-wp-widget-archives.php */ |
36 | 36 | $dropdown_args = apply_filters( |
… |
… |
function render_block_core_archives( $attributes ) { |
48 | 48 | |
49 | 49 | switch ( $dropdown_args['type'] ) { |
50 | 50 | case 'yearly': |
51 | | $label = __( 'Select Year', 'gutenberg' ); |
| 51 | $label = __( 'Select Year' ); |
52 | 52 | break; |
53 | 53 | case 'monthly': |
54 | | $label = __( 'Select Month', 'gutenberg' ); |
| 54 | $label = __( 'Select Month' ); |
55 | 55 | break; |
56 | 56 | case 'daily': |
57 | | $label = __( 'Select Day', 'gutenberg' ); |
| 57 | $label = __( 'Select Day' ); |
58 | 58 | break; |
59 | 59 | case 'weekly': |
60 | | $label = __( 'Select Week', 'gutenberg' ); |
| 60 | $label = __( 'Select Week' ); |
61 | 61 | break; |
62 | 62 | default: |
63 | | $label = __( 'Select Post', 'gutenberg' ); |
| 63 | $label = __( 'Select Post' ); |
64 | 64 | break; |
65 | 65 | } |
66 | 66 | |
… |
… |
function render_block_core_archives( $attributes ) { |
97 | 97 | $block_content = sprintf( |
98 | 98 | '<div class="%1$s">%2$s</div>', |
99 | 99 | $classnames, |
100 | | __( 'No archives to show.', 'gutenberg' ) |
| 100 | __( 'No archives to show.' ) |
101 | 101 | ); |
102 | 102 | } else { |
103 | 103 | |
diff --git src/wp-includes/blocks/block.php src/wp-includes/blocks/block.php
index bc33929ac5..77a281802c 100644
|
|
|
2 | 2 | /** |
3 | 3 | * Server-side rendering of the `core/block` block. |
4 | 4 | * |
5 | | * @package gutenberg |
| 5 | * @package WordPress |
6 | 6 | */ |
7 | 7 | |
8 | 8 | /** |
diff --git src/wp-includes/blocks/categories.php src/wp-includes/blocks/categories.php
index bd1175733b..db621ab8e6 100644
|
|
|
2 | 2 | /** |
3 | 3 | * Server-side rendering of the `core/categories` block. |
4 | 4 | * |
5 | | * @package gutenberg |
| 5 | * @package WordPress |
6 | 6 | */ |
7 | 7 | |
8 | 8 | /** |
… |
… |
function render_block_core_categories( $attributes ) { |
32 | 32 | if ( ! empty( $attributes['displayAsDropdown'] ) ) { |
33 | 33 | $id = 'wp-block-categories-' . $block_id; |
34 | 34 | $args['id'] = $id; |
35 | | $args['show_option_none'] = __( 'Select Category', 'gutenberg' ); |
| 35 | $args['show_option_none'] = __( 'Select Category' ); |
36 | 36 | $wrapper_markup = '<div class="%1$s">%2$s</div>'; |
37 | 37 | $items_markup = wp_dropdown_categories( $args ); |
38 | 38 | $type = 'dropdown'; |
diff --git src/wp-includes/blocks/latest-comments.php src/wp-includes/blocks/latest-comments.php
index dd310028ce..39d90494e8 100644
|
|
|
2 | 2 | /** |
3 | 3 | * Server-side rendering of the `core/latest-comments` block. |
4 | 4 | * |
5 | | * @package gutenberg |
| 5 | * @package WordPress |
6 | 6 | */ |
7 | 7 | |
8 | 8 | /** |
… |
… |
|
28 | 28 | function gutenberg_draft_or_post_title( $post = 0 ) { |
29 | 29 | $title = get_the_title( $post ); |
30 | 30 | if ( empty( $title ) ) { |
31 | | $title = __( '(no title)', 'gutenberg' ); |
| 31 | $title = __( '(no title)' ); |
32 | 32 | } |
33 | 33 | return esc_html( $title ); |
34 | 34 | } |
… |
… |
function gutenberg_render_block_core_latest_comments( $attributes = array() ) { |
96 | 96 | |
97 | 97 | $list_items_markup .= sprintf( |
98 | 98 | /* translators: 1: author name (inside <a> or <span> tag, based on if they have a URL), 2: post title related to this comment */ |
99 | | __( '%1$s on %2$s', 'gutenberg' ), |
| 99 | __( '%1$s on %2$s' ), |
100 | 100 | $author_markup, |
101 | 101 | $post_title |
102 | 102 | ); |
… |
… |
function gutenberg_render_block_core_latest_comments( $attributes = array() ) { |
141 | 141 | ) : sprintf( |
142 | 142 | '<div class="%1$s">%2$s</div>', |
143 | 143 | $classnames, |
144 | | __( 'No comments to show.', 'gutenberg' ) |
| 144 | __( 'No comments to show.' ) |
145 | 145 | ); |
146 | 146 | |
147 | 147 | return $block_content; |
diff --git src/wp-includes/blocks/latest-posts.php src/wp-includes/blocks/latest-posts.php
index 070abafeb4..2d9b3b6407 100644
|
|
|
2 | 2 | /** |
3 | 3 | * Server-side rendering of the `core/latest-posts` block. |
4 | 4 | * |
5 | | * @package gutenberg |
| 5 | * @package WordPress |
6 | 6 | */ |
7 | 7 | |
8 | 8 | /** |
… |
… |
function render_block_core_latest_posts( $attributes ) { |
30 | 30 | |
31 | 31 | $title = get_the_title( $post_id ); |
32 | 32 | if ( ! $title ) { |
33 | | $title = __( '(Untitled)', 'gutenberg' ); |
| 33 | $title = __( '(Untitled)' ); |
34 | 34 | } |
35 | 35 | $list_items_markup .= sprintf( |
36 | 36 | '<li><a href="%1$s">%2$s</a>', |
diff --git src/wp-includes/blocks/shortcode.php src/wp-includes/blocks/shortcode.php
index d18dd4f582..1c0761250d 100644
|
|
|
2 | 2 | /** |
3 | 3 | * Server-side rendering of the `core/shortcode` block. |
4 | 4 | * |
5 | | * @package gutenberg |
| 5 | * @package WordPress |
6 | 6 | */ |
7 | 7 | |
8 | 8 | /** |