Make WordPress Core

Changeset 53288


Ignore:
Timestamp:
04/26/2022 03:35:13 PM (3 years ago)
Author:
hellofromTonya
Message:

Themes: Remove 'gutenberg' as translation context in _wp_theme_json_webfonts_handler().

Follow-up to [53282].

Props kebbet.

See #55567, #46370.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r53282 r53288  
    31943194        // Check the font-family.
    31953195        if ( empty( $webfont['font-family'] ) || ! is_string( $webfont['font-family'] ) ) {
    3196             trigger_error( __( 'Webfont font family must be a non-empty string.', 'gutenberg' ) );
     3196            trigger_error( __( 'Webfont font family must be a non-empty string.' ) );
    31973197
    31983198            return false;
     
    32013201        // Check that the `src` property is defined and a valid type.
    32023202        if ( empty( $webfont['src'] ) || ( ! is_string( $webfont['src'] ) && ! is_array( $webfont['src'] ) ) ) {
    3203             trigger_error( __( 'Webfont src must be a non-empty string or an array of strings.', 'gutenberg' ) );
     3203            trigger_error( __( 'Webfont src must be a non-empty string or an array of strings.' ) );
    32043204
    32053205            return false;
     
    32093209        foreach ( (array) $webfont['src'] as $src ) {
    32103210            if ( ! is_string( $src ) || '' === trim( $src ) ) {
    3211                 trigger_error( __( 'Each webfont src must be a non-empty string.', 'gutenberg' ) );
     3211                trigger_error( __( 'Each webfont src must be a non-empty string.' ) );
    32123212
    32133213                return false;
     
    32173217        // Check the font-weight.
    32183218        if ( ! is_string( $webfont['font-weight'] ) && ! is_int( $webfont['font-weight'] ) ) {
    3219             trigger_error( __( 'Webfont font weight must be a properly formatted string or integer.', 'gutenberg' ) );
     3219            trigger_error( __( 'Webfont font weight must be a properly formatted string or integer.' ) );
    32203220
    32213221            return false;
Note: See TracChangeset for help on using the changeset viewer.