From 12d8066d39e8a0348183ff2fe541a267bc428105 Mon Sep 17 00:00:00 2001 From: Tonya Mork Date: Tue, 26 Apr 2022 15:35:13 +0000 Subject: [PATCH] Themes: Remove 'gutenberg' as translation context in `_wp_theme_json_webfonts_handler()`. Follow-up to [53282]. Props kebbet. See #55567, #46370. git-svn-id: https://develop.svn.wordpress.org/trunk@53288 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/script-loader.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 72642dab28..264ff2c6e1 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -3193,14 +3193,14 @@ function _wp_theme_json_webfonts_handler() { // Check the font-family. if ( empty( $webfont['font-family'] ) || ! is_string( $webfont['font-family'] ) ) { - trigger_error( __( 'Webfont font family must be a non-empty string.', 'gutenberg' ) ); + trigger_error( __( 'Webfont font family must be a non-empty string.' ) ); return false; } // Check that the `src` property is defined and a valid type. if ( empty( $webfont['src'] ) || ( ! is_string( $webfont['src'] ) && ! is_array( $webfont['src'] ) ) ) { - trigger_error( __( 'Webfont src must be a non-empty string or an array of strings.', 'gutenberg' ) ); + trigger_error( __( 'Webfont src must be a non-empty string or an array of strings.' ) ); return false; } @@ -3208,7 +3208,7 @@ function _wp_theme_json_webfonts_handler() { // Validate the `src` property. foreach ( (array) $webfont['src'] as $src ) { if ( ! is_string( $src ) || '' === trim( $src ) ) { - trigger_error( __( 'Each webfont src must be a non-empty string.', 'gutenberg' ) ); + trigger_error( __( 'Each webfont src must be a non-empty string.' ) ); return false; } @@ -3216,7 +3216,7 @@ function _wp_theme_json_webfonts_handler() { // Check the font-weight. if ( ! is_string( $webfont['font-weight'] ) && ! is_int( $webfont['font-weight'] ) ) { - trigger_error( __( 'Webfont font weight must be a properly formatted string or integer.', 'gutenberg' ) ); + trigger_error( __( 'Webfont font weight must be a properly formatted string or integer.' ) ); return false; }