Changeset 3164 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/bin/import-plugin.php
- Timestamp:
- 05/18/2016 02:12:47 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/bin/import-plugin.php
r2649 r3164 6 6 die(); 7 7 } 8 9 ob_start(); 8 10 9 11 $opts = getopt( '', array( 'url:', 'abspath:', 'plugin:' ) ); … … 50 52 try { 51 53 $importer = new CLI\Import; 52 $importer->import ( $plugin_slug );54 $importer->import_from_svn( $plugin_slug ); 53 55 echo "OK\n"; 54 56 } catch( \Exception $e ) { 55 57 echo "Failed.\n"; 56 fwrite( STDERR, " Plugin Import Failed: " . $e->getMessage() . "\n" );58 fwrite( STDERR, "[{$plugin_slug}] Plugin Import Failed: " . $e->getMessage() . "\n" ); 57 59 exit(1); 58 60 }
Note: See TracChangeset
for help on using the changeset viewer.