Changeset 13234 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-plugin-import.php
- Timestamp:
- 02/22/2024 05:30:26 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-plugin-import.php
r12606 r13234 44 44 $revision = max( (array) $plugin_data['revisions'] ); 45 45 46 $importer = new CLI\Import(); 46 47 try { 47 $importer = new CLI\Import();48 48 $importer->import_from_svn( $plugin_slug, $tags_touched, $revision ); 49 49 } catch ( Exception $e ) { 50 50 fwrite( STDERR, "[{$plugin_slug}] Plugin Import Failed: " . $e->getMessage() . "\n" ); 51 } finally { 52 if ( $importer->plugin ) { 53 update_post_meta( $importer->plugin->ID, '_last_import', time() ); 54 update_post_meta( $importer->plugin->ID, '_import_warnings', $importer->warnings ); 55 } 51 56 } 52 57
Note: See TracChangeset
for help on using the changeset viewer.