Changeset 8893
- Timestamp:
- 05/30/2019 03:03:00 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php
r8868 r8893 311 311 array( 312 312 'ignore-externals', 313 'depth' => 'files',314 313 ) 315 314 ); … … 322 321 array( 323 322 'ignore-externals', 324 'depth' => 'files',325 323 ) 326 324 ); … … 346 344 array( 347 345 'ignore-externals', 348 'depth' => 'files', // Only export the root files, we don't need the rest to read the plugin headers/screenshots349 346 ) 350 347 ); … … 410 407 // Find blocks 411 408 $blocks = array(); 412 foreach ( Filesystem::list_files( "$tmp_dir/export/", false, '!\.(?:php|js|jsx|json)$!i' ) as $filename ) {409 foreach ( Filesystem::list_files( "$tmp_dir/export/", true /* recursive */, '!\.(?:php|js|jsx|json)$!i' ) as $filename ) { 413 410 $file_blocks = $this->find_blocks_in_file( $filename ); 414 411 if ( $file_blocks ) {
Note: See TracChangeset
for help on using the changeset viewer.