WordPress.org

Make WordPress Core

Ticket #45109: 45109.diff

File 45109.diff, 5.0 KB (added by swissspidy, 2 years ago)

Fix package name and text domains

  • src/wp-includes/blocks/archives.php

    diff --git src/wp-includes/blocks/archives.php src/wp-includes/blocks/archives.php
    index adcc61c233..012270eb7b 100644
     
    22/**
    33 * Server-side rendering of the `core/archives` block.
    44 *
    5  * @package gutenberg
     5 * @package WordPress
    66 */
    77
    88/**
    function render_block_core_archives( $attributes ) { 
    3030        if ( ! empty( $attributes['displayAsDropdown'] ) ) {
    3131
    3232                $dropdown_id = esc_attr( uniqid( 'wp-block-archives-' ) );
    33                 $title       = __( 'Archives', 'gutenberg' );
     33                $title       = __( 'Archives' );
    3434
    3535                /** This filter is documented in wp-includes/widgets/class-wp-widget-archives.php */
    3636                $dropdown_args = apply_filters(
    function render_block_core_archives( $attributes ) { 
    4848
    4949                switch ( $dropdown_args['type'] ) {
    5050                        case 'yearly':
    51                                 $label = __( 'Select Year', 'gutenberg' );
     51                                $label = __( 'Select Year' );
    5252                                break;
    5353                        case 'monthly':
    54                                 $label = __( 'Select Month', 'gutenberg' );
     54                                $label = __( 'Select Month' );
    5555                                break;
    5656                        case 'daily':
    57                                 $label = __( 'Select Day', 'gutenberg' );
     57                                $label = __( 'Select Day' );
    5858                                break;
    5959                        case 'weekly':
    60                                 $label = __( 'Select Week', 'gutenberg' );
     60                                $label = __( 'Select Week' );
    6161                                break;
    6262                        default:
    63                                 $label = __( 'Select Post', 'gutenberg' );
     63                                $label = __( 'Select Post' );
    6464                                break;
    6565                }
    6666
    function render_block_core_archives( $attributes ) { 
    9797                        $block_content = sprintf(
    9898                                '<div class="%1$s">%2$s</div>',
    9999                                $classnames,
    100                                 __( 'No archives to show.', 'gutenberg' )
     100                                __( 'No archives to show.' )
    101101                        );
    102102                } else {
    103103
  • src/wp-includes/blocks/block.php

    diff --git src/wp-includes/blocks/block.php src/wp-includes/blocks/block.php
    index bc33929ac5..77a281802c 100644
     
    22/**
    33 * Server-side rendering of the `core/block` block.
    44 *
    5  * @package gutenberg
     5 * @package WordPress
    66 */
    77
    88/**
  • src/wp-includes/blocks/categories.php

    diff --git src/wp-includes/blocks/categories.php src/wp-includes/blocks/categories.php
    index bd1175733b..db621ab8e6 100644
     
    22/**
    33 * Server-side rendering of the `core/categories` block.
    44 *
    5  * @package gutenberg
     5 * @package WordPress
    66 */
    77
    88/**
    function render_block_core_categories( $attributes ) { 
    3232        if ( ! empty( $attributes['displayAsDropdown'] ) ) {
    3333                $id                       = 'wp-block-categories-' . $block_id;
    3434                $args['id']               = $id;
    35                 $args['show_option_none'] = __( 'Select Category', 'gutenberg' );
     35                $args['show_option_none'] = __( 'Select Category' );
    3636                $wrapper_markup           = '<div class="%1$s">%2$s</div>';
    3737                $items_markup             = wp_dropdown_categories( $args );
    3838                $type                     = 'dropdown';
  • src/wp-includes/blocks/latest-comments.php

    diff --git src/wp-includes/blocks/latest-comments.php src/wp-includes/blocks/latest-comments.php
    index dd310028ce..39d90494e8 100644
     
    22/**
    33 * Server-side rendering of the `core/latest-comments` block.
    44 *
    5  * @package gutenberg
     5 * @package WordPress
    66 */
    77
    88/**
     
    2828function gutenberg_draft_or_post_title( $post = 0 ) {
    2929        $title = get_the_title( $post );
    3030        if ( empty( $title ) ) {
    31                 $title = __( '(no title)', 'gutenberg' );
     31                $title = __( '(no title)' );
    3232        }
    3333        return esc_html( $title );
    3434}
    function gutenberg_render_block_core_latest_comments( $attributes = array() ) { 
    9696
    9797                        $list_items_markup .= sprintf(
    9898                                /* 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' ),
    100100                                $author_markup,
    101101                                $post_title
    102102                        );
    function gutenberg_render_block_core_latest_comments( $attributes = array() ) { 
    141141        ) : sprintf(
    142142                '<div class="%1$s">%2$s</div>',
    143143                $classnames,
    144                 __( 'No comments to show.', 'gutenberg' )
     144                __( 'No comments to show.' )
    145145        );
    146146
    147147        return $block_content;
  • src/wp-includes/blocks/latest-posts.php

    diff --git src/wp-includes/blocks/latest-posts.php src/wp-includes/blocks/latest-posts.php
    index 070abafeb4..2d9b3b6407 100644
     
    22/**
    33 * Server-side rendering of the `core/latest-posts` block.
    44 *
    5  * @package gutenberg
     5 * @package WordPress
    66 */
    77
    88/**
    function render_block_core_latest_posts( $attributes ) { 
    3030
    3131                $title = get_the_title( $post_id );
    3232                if ( ! $title ) {
    33                         $title = __( '(Untitled)', 'gutenberg' );
     33                        $title = __( '(Untitled)' );
    3434                }
    3535                $list_items_markup .= sprintf(
    3636                        '<li><a href="%1$s">%2$s</a>',
  • src/wp-includes/blocks/shortcode.php

    diff --git src/wp-includes/blocks/shortcode.php src/wp-includes/blocks/shortcode.php
    index d18dd4f582..1c0761250d 100644
     
    22/**
    33 * Server-side rendering of the `core/shortcode` block.
    44 *
    5  * @package gutenberg
     5 * @package WordPress
    66 */
    77
    88/**