Changeset 10000 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-block-plugin-checker.php
- Timestamp:
- 07/03/2020 03:11:38 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-block-plugin-checker.php
r9997 r10000 267 267 'check_name' => $check_name, 268 268 'type' => $type, 269 'message' => $message, 269 'message' => $message, 270 270 'data' => $data ); 271 271 } … … 331 331 continue; // It's this very same plugin 332 332 333 $this->record_result( __FUNCTION__, 334 'info', 335 sprintf( __( 'Block name already exists in plugin %s', 'wporg-plugins' ), $query->posts[0]->post_name ), 333 $this->record_result( __FUNCTION__, 334 'info', 335 sprintf( __( 'Block name already exists in plugin %s', 'wporg-plugins' ), $query->posts[0]->post_name ), 336 336 [ 'block_name' => $block->name, 'slug' => $post->post_name ] 337 337 ); … … 472 472 function check_block_json_is_valid() { 473 473 foreach ( $this->block_json_validation as $block_json_file => $result ) { 474 if ( true === $result ) { 474 if ( true === $result ) { 475 475 $this->record_result( __FUNCTION__, 476 476 'info', … … 490 490 ( 'error' === $code ? 'warning' : $code ), // TODO: be smarter about mapping these 491 491 $message, 492 array( 492 array( 493 493 $this->relative_filename( $block_json_file ), 494 494 $result->get_error_data( $code )
Note: See TracChangeset
for help on using the changeset viewer.