Changeset 10003 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-block-plugin-checker.php
- Timestamp:
- 07/03/2020 04:10:55 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
r10000 r10003 68 68 __FUNCTION__, 69 69 'error', 70 sprintf( __( 'Invalid url %s', 'wporg-plugins' ), $url ),70 sprintf( __( 'Invalid url: %s', 'wporg-plugins' ), $url ), 71 71 $url 72 72 ); … … 78 78 __FUNCTION__, 79 79 'error', 80 sprintf( __( 'URL must be GitHub or plugins.svn.wordpress.org %s', 'wporg-plugins' ), $url ),80 sprintf( __( 'URL must be GitHub or plugins.svn.wordpress.org: %s', 'wporg-plugins' ), $url ), 81 81 $url 82 82 ); … … 90 90 __FUNCTION__, 91 91 'error', 92 sprintf( __( 'URL must be a plugin repository %s', 'wporg-plugins' ), $url ),92 sprintf( __( 'URL must be a plugin repository: %s', 'wporg-plugins' ), $url ), 93 93 $url 94 94 ); … … 116 116 __FUNCTION__, 117 117 'error', 118 sprintf( __( 'URL must be a plugin repository %s', 'wporg-plugins' ), $url ),118 sprintf( __( 'URL must be a plugin repository: %s', 'wporg-plugins' ), $url ), 119 119 $url 120 120 ); … … 213 213 214 214 public function find_blocks( $base_dir ) { 215 $blocks = array(); 215 216 $this->block_json_files = Filesystem::list_files( $base_dir, true, '!(?:^|/)block\.json$!i' ); 216 217 if ( false && ! empty( $this->block_json_files ) ) { … … 282 283 $this->record_result( __FUNCTION__, 283 284 'error', 284 __( 'Missing readme.txt file ', 'wporg-plugins' ),285 __( 'Missing readme.txt file.', 'wporg-plugins' ), 285 286 $this->relative_filename( $this->readme_path ) 286 287 ); … … 333 334 $this->record_result( __FUNCTION__, 334 335 'info', 335 sprintf( __( 'Block name already exists in plugin %s', 'wporg-plugins' ), $query->posts[0]->post_name ),336 sprintf( __( 'Block name %s already exists in plugin %s.', 'wporg-plugins' ), $block->name, $query->posts[0]->post_name ), 336 337 [ 'block_name' => $block->name, 'slug' => $post->post_name ] 337 338 ); … … 354 355 $this->record_result( __FUNCTION__, 355 356 'info', 356 sprintf( _n( 'Found %d block ', 'Found %d blocks', count( $this->blocks ), 'wporg-plugins' ), count( $this->blocks ) ),357 sprintf( _n( 'Found %d block.', 'Found %d blocks.', count( $this->blocks ), 'wporg-plugins' ), count( $this->blocks ) ), 357 358 array_keys( $this->blocks ) 358 359 ); … … 368 369 $this->record_result( __FUNCTION__, 369 370 'info', 370 sprintf( __( 'block.json file exists for block %s ', 'wporg-plugins' ), $block_name ),371 sprintf( __( 'block.json file exists for block %s.', 'wporg-plugins' ), $block_name ), 371 372 $this->block_json_files[ $block_name ] 372 373 ); … … 377 378 $this->record_result( __FUNCTION__, 378 379 'warning', 379 __( 'No block.json files were found ', 'wporg-plugins' )380 __( 'No block.json files were found.', 'wporg-plugins' ) 380 381 ); 381 382 } … … 392 393 $this->record_result( __FUNCTION__, 393 394 'info', 394 sprintf( __( 'Scripts found for block %s ', 'wporg-plugins' ), $block_name ),395 sprintf( __( 'Scripts found for block %s.', 'wporg-plugins' ), $block_name ), 395 396 $block_scripts[ $block_name ] 396 397 ); … … 398 399 $this->record_result( __FUNCTION__, 399 400 'warning', 400 sprintf( __( 'No scripts found for block %s ', 'wporg-plugins' ), $block_name ),401 sprintf( __( 'No scripts found for block %s.', 'wporg-plugins' ), $block_name ), 401 402 $block_name 402 403 ); … … 414 415 $this->record_result( __FUNCTION__, 415 416 'info', 416 sprintf( __( 'Script file exists for block %s ', 'wporg-plugins' ), $block_name ),417 sprintf( __( 'Script file exists for block %s.', 'wporg-plugins' ), $block_name ), 417 418 $script 418 419 ); … … 420 421 $this->record_result( __FUNCTION__, 421 422 'warning', 422 sprintf( __( 'Missing script file for block %s ', 'wporg-plugins' ), $block_name ),423 sprintf( __( 'Missing script file for block %s.', 'wporg-plugins' ), $block_name ), 423 424 $script 424 425 ); … … 445 446 $this->record_result( __FUNCTION__, 446 447 'error', 447 sprintf( __( ' registerBlockType() must be called in a JavaScript file', 'wporg-plugins' ) )448 sprintf( __( '<code>registerBlockType()</code> must be called in a JavaScript file.', 'wporg-plugins' ) ) 448 449 ); 449 450 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)