From c5765137b378bead767a0eefeec8c9e4b2953b1f Mon Sep 17 00:00:00 2001 From: ntsekouras Date: Mon, 24 May 2021 15:19:56 +0300 Subject: [PATCH] Remove `gutenberg` domain from core blocks --- packages/block-library/src/post-navigation-link/index.php | 2 +- packages/block-library/src/query-pagination-next/index.php | 2 +- packages/block-library/src/query-pagination-previous/index.php | 2 +- packages/block-library/src/social-link/index.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/block-library/src/post-navigation-link/index.php b/packages/block-library/src/post-navigation-link/index.php index 6d8380184c70b..0c3e294adb714 100644 --- a/packages/block-library/src/post-navigation-link/index.php +++ b/packages/block-library/src/post-navigation-link/index.php @@ -31,7 +31,7 @@ function render_block_core_post_navigation_link( $attributes, $content ) { $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes ) ); // Set default values. $format = '%link'; - $link = 'next' === $navigation_type ? _x( 'Next', 'label for next post link', 'gutenberg' ) : _x( 'Previous', 'label for previous post link', 'gutenberg' ); + $link = 'next' === $navigation_type ? _x( 'Next', 'label for next post link' ) : _x( 'Previous', 'label for previous post link' ); $label = ''; // If a custom label is provided, make this a link. // `$label` is used to prepend the provided label, if we want to show the page title as well. diff --git a/packages/block-library/src/query-pagination-next/index.php b/packages/block-library/src/query-pagination-next/index.php index ee71ad0f0271a..f22a4810f9dbf 100644 --- a/packages/block-library/src/query-pagination-next/index.php +++ b/packages/block-library/src/query-pagination-next/index.php @@ -20,7 +20,7 @@ function render_block_core_query_pagination_next( $attributes, $content, $block $max_page = isset( $block->context['query']['pages'] ) ? (int) $block->context['query']['pages'] : 0; $wrapper_attributes = get_block_wrapper_attributes(); - $default_label = __( 'Next Page »', 'gutenberg' ); + $default_label = __( 'Next Page »' ); $label = isset( $attributes['label'] ) && ! empty( $attributes['label'] ) ? $attributes['label'] : $default_label; $content = ''; diff --git a/packages/block-library/src/query-pagination-previous/index.php b/packages/block-library/src/query-pagination-previous/index.php index 1723cfef0bc3e..676347de8e085 100644 --- a/packages/block-library/src/query-pagination-previous/index.php +++ b/packages/block-library/src/query-pagination-previous/index.php @@ -19,7 +19,7 @@ function render_block_core_query_pagination_previous( $attributes, $content, $bl $page = empty( $_GET[ $page_key ] ) ? 1 : (int) $_GET[ $page_key ]; $wrapper_attributes = get_block_wrapper_attributes(); - $default_label = __( '« Previous Page', 'gutenberg' ); + $default_label = __( '« Previous Page' ); $label = isset( $attributes['label'] ) && ! empty( $attributes['label'] ) ? $attributes['label'] : $default_label; $content = ''; // Check if the pagination is for Query that inherits the global context diff --git a/packages/block-library/src/social-link/index.php b/packages/block-library/src/social-link/index.php index d0b639d237552..d0c353ad9358c 100644 --- a/packages/block-library/src/social-link/index.php +++ b/packages/block-library/src/social-link/index.php @@ -21,7 +21,7 @@ function render_block_core_social_link( $attributes, $content, $block ) { $url = ( isset( $attributes['url'] ) ) ? $attributes['url'] : false; $label = ( isset( $attributes['label'] ) ) ? $attributes['label'] : sprintf( /* translators: %1$s: Social-network name. %2$s: URL. */ - __( '%1$s: %2$s', 'gutenberg' ), + __( '%1$s: %2$s' ), block_core_social_link_get_name( $service ), $url );