Changeset 6287 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-plugin-import.php
- Timestamp:
- 12/19/2017 04:22:37 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-plugin-import.php
r5453 r6287 23 23 "import_plugin:{$plugin_slug}", 24 24 array( 25 array_merge( array( 'plugin' => $plugin_slug ), $plugin_data ) 25 array_merge( array( 'plugin' => $plugin_slug ), $plugin_data ), 26 26 ) 27 27 ); … … 35 35 $changed_tags = isset( $plugin_data['tags_touched'] ) ? $plugin_data['tags_touched'] : array( 'trunk' ); 36 36 37 $revision = isset( $plugin_data['revisions'] ) ? max( (array) $plugin_data['revisions'] ) : false;37 $revision = isset( $plugin_data['revisions'] ) ? max( (array) $plugin_data['revisions'] ) : false; 38 38 39 39 try { 40 $importer = new CLI\Import ;40 $importer = new CLI\Import(); 41 41 $importer->import_from_svn( $plugin_slug, $changed_tags, $revision ); 42 } catch ( Exception $e ) {42 } catch ( Exception $e ) { 43 43 fwrite( STDERR, "[{$plugin_slug}] Plugin Import Failed: " . $e->getMessage() . "\n" ); 44 44 }
Note: See TracChangeset
for help on using the changeset viewer.