Changeset 4563
- Timestamp:
- 12/21/2016 07:37:30 AM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 2 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 { -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-plugin-import.php
r4522 r4563 32 32 public static function cron_trigger( $plugin_data ) { 33 33 $plugin_slug = $plugin_data['plugin']; 34 $changed_tags = $plugin_data['tags_touched'];34 $changed_tags = isset( $plugin_data['tags_touched'] ) ? $plugin_data['tags_touched'] : array( 'trunk' ); 35 35 36 36 try {
Note: See TracChangeset
for help on using the changeset viewer.