Changeset 53288
- Timestamp:
- 04/26/2022 03:35:13 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r53282 r53288 3194 3194 // Check the font-family. 3195 3195 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.' ) ); 3197 3197 3198 3198 return false; … … 3201 3201 // Check that the `src` property is defined and a valid type. 3202 3202 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.' ) ); 3204 3204 3205 3205 return false; … … 3209 3209 foreach ( (array) $webfont['src'] as $src ) { 3210 3210 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.' ) ); 3212 3212 3213 3213 return false; … … 3217 3217 // Check the font-weight. 3218 3218 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.' ) ); 3220 3220 3221 3221 return false;
Note: See TracChangeset
for help on using the changeset viewer.