Changeset 3052
- Timestamp:
- 04/30/2016 09:43:47 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-plugin-directory/inc/cli/class-set-plugin-project.php
r2881 r3052 52 52 } 53 53 54 // Get plugin details like title and description.54 // Get plugin details from the API. 55 55 $plugin_details = $this->get_plugin_details( $plugin_slug ); 56 56 if ( ! $plugin_details ) { 57 WP_CLI::line( "The plugin API couldn't be reached." ); 58 exit( 3 ); 57 WP_CLI::warning( "The plugin API couldn't be reached." ); 58 59 /* 60 * That's usally the case for the initial commit. 61 * Provide a mockup which contains the necessary plugin details. 62 */ 63 $plugin_details = new stdClass(); 64 $plugin_details->name = $plugin_slug; 65 $plugin_details->short_description = ''; 66 $plugin_details->stable_tag = 'trunk'; 59 67 } 60 68
Note: See TracChangeset
for help on using the changeset viewer.