From 07533bff1e39af781fa2a5d514511340da587712 Mon Sep 17 00:00:00 2001 From: desrosj Date: Fri, 2 Jul 2021 18:38:57 +0000 Subject: [PATCH] Editor: Ensure the Query block pattern category is translatable. Because the `__()` translation function was used here, the Query block pattern category string is not translatable. `_x()` is the correct function here as that passes the second parameter as context and not text domain. Follow up to [50948]. Props walbo. Merges [51307] to the 5.8 branch. Fixes #53577. Built from https://develop.svn.wordpress.org/branches/5.8@51308 git-svn-id: http://core.svn.wordpress.org/branches/5.8@50917 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/block-patterns.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/block-patterns.php b/wp-includes/block-patterns.php index 38ca373723..b01869f8b6 100644 --- a/wp-includes/block-patterns.php +++ b/wp-includes/block-patterns.php @@ -41,7 +41,7 @@ function _register_core_block_patterns_and_categories() { register_block_pattern_category( 'gallery', array( 'label' => _x( 'Gallery', 'Block pattern category' ) ) ); register_block_pattern_category( 'header', array( 'label' => _x( 'Headers', 'Block pattern category' ) ) ); register_block_pattern_category( 'text', array( 'label' => _x( 'Text', 'Block pattern category' ) ) ); - register_block_pattern_category( 'query', array( 'label' => __( 'Query', 'Block pattern category' ) ) ); + register_block_pattern_category( 'query', array( 'label' => _x( 'Query', 'Block pattern category' ) ) ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index bb4fb4fab3..41a85f0107 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-RC1-51305'; +$wp_version = '5.8-RC1-51308'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.