Changeset 4563 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/bin/import-plugin.php
- Timestamp:
- 12/21/2016 07:37:30 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/bin/import-plugin.php
r3373 r4563 9 9 ob_start(); 10 10 11 $opts = getopt( '', array( 'url:', 'abspath:', 'plugin:', 'changed-tags:' ) );11 $opts = getopt( '', array( 'url:', 'abspath:', 'plugin:', 'changed-tags:', 'async' ) ); 12 12 13 13 // Guess the default parameters: … … 28 28 $opts['changed-tags'] = explode( ',', $opts['changed-tags'] ); 29 29 } 30 31 $opts['async'] = isset( $opts['async'] ); 30 32 31 33 foreach ( array( 'url', 'abspath', 'plugin' ) as $opt ) { … … 57 59 $start_time = microtime(1); 58 60 61 // If async, queue it to be parsed instead. 62 if ( $opts['async'] ) { 63 Jobs\Plugin_Import::queue( $plugin_slug, array( 'tags_touched' => $changed_tags ) ); 64 echo "Queueing Import for $plugin_slug... OK\n"; 65 die(); 66 } 67 59 68 echo "Processing Import for $plugin_slug... "; 60 69 try {
Note: See TracChangeset
for help on using the changeset viewer.