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; }