- Timestamp:
- 09/30/2019 03:43:36 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-styles-registry.php
r46111 r46351 3 3 * Blocks API: WP_Block_Styles_Registry class 4 4 * 5 * @package Gutenberg 5 * @package WordPress 6 * @subpackage Blocks 6 7 * @since 5.3.0 7 8 */ … … 42 43 43 44 if ( ! isset( $block_name ) || ! is_string( $block_name ) ) { 44 $message = __( 'Block name name must be a string.' , 'gutenberg');45 _doing_it_wrong( __METHOD__, $message, ' 6.2.0' );45 $message = __( 'Block name name must be a string.' ); 46 _doing_it_wrong( __METHOD__, $message, '5.3.0' ); 46 47 return false; 47 48 } 48 49 49 50 if ( ! isset( $style_properties['name'] ) || ! is_string( $style_properties['name'] ) ) { 50 $message = __( 'Block style name must be a string.' , 'gutenberg');51 _doing_it_wrong( __METHOD__, $message, ' 6.2.0' );51 $message = __( 'Block style name must be a string.' ); 52 _doing_it_wrong( __METHOD__, $message, '5.3.0' ); 52 53 return false; 53 54 } … … 74 75 if ( ! $this->is_registered( $block_name, $block_style_name ) ) { 75 76 /* translators: 1: block name, 2: block style name */ 76 $message = sprintf( __( 'Block "%1$s" does not contain a style named "%2$s.".' , 'gutenberg'), $block_name, $block_style_name );77 _doing_it_wrong( __METHOD__, $message, ' 6.2.0' );77 $message = sprintf( __( 'Block "%1$s" does not contain a style named "%2$s.".' ), $block_name, $block_style_name ); 78 _doing_it_wrong( __METHOD__, $message, '5.3.0' ); 78 79 return false; 79 80 }
Note: See TracChangeset
for help on using the changeset viewer.