From 66d9364d390fc6622c280810e85111e086c56d91 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Fri, 2 Jul 2021 14:34:24 +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. Fixes #53577. git-svn-id: https://develop.svn.wordpress.org/trunk@51307 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/block-patterns.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/block-patterns.php b/src/wp-includes/block-patterns.php index 38ca373723..b01869f8b6 100644 --- a/src/wp-includes/block-patterns.php +++ b/src/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' ) ) ); } /**