- Timestamp:
- 06/15/2021 03:21:50 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-pattern-categories-registry.php
r50532 r51154 39 39 public function register( $category_name, $category_properties ) { 40 40 if ( ! isset( $category_name ) || ! is_string( $category_name ) ) { 41 _doing_it_wrong( __METHOD__, __( 'Block pattern category name must be a string.' ), '5.5.0' ); 41 _doing_it_wrong( 42 __METHOD__, 43 __( 'Block pattern category name must be a string.' ), 44 '5.5.0' 45 ); 42 46 return false; 43 47 } … … 61 65 public function unregister( $category_name ) { 62 66 if ( ! $this->is_registered( $category_name ) ) { 63 /* translators: %s: Block pattern name. */ 64 $message = sprintf( __( 'Block pattern category "%s" not found.' ), $category_name ); 65 _doing_it_wrong( __METHOD__, $message, '5.5.0' ); 67 _doing_it_wrong( 68 __METHOD__, 69 /* translators: %s: Block pattern name. */ 70 sprintf( __( 'Block pattern category "%s" not found.' ), $category_name ), 71 '5.5.0' 72 ); 66 73 return false; 67 74 }
Note: See TracChangeset
for help on using the changeset viewer.