Changeset 4018 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-plugin-directory/inc/cli/class-set-plugin-project.php
- Timestamp:
- 09/09/2016 02:06:26 PM (10 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
r3955 r4018 5 5 use GP; 6 6 use stdClass; 7 use WordPressdotorg\GlotPress\Plugin_Directory\Plugin; 7 8 use WP_CLI; 8 9 use WP_CLI_Command; 9 10 10 11 class Set_Plugin_Project extends WP_CLI_Command { 11 12 /**13 * Holds the path of the master project.14 *15 * @var string16 */17 private $master_project_path = 'wp-plugins';18 12 19 13 /** … … 43 37 $plugin_slug = $args[0]; 44 38 $process_type = $args[1]; 45 $plugin_project_path = "{$this->master_project_path}/{$plugin_slug}";39 $plugin_project_path = Plugin::GP_MASTER_PROJECT . "/{$plugin_slug}"; 46 40 47 41 // Get data for master parent project. 48 $master_project = GP::$project->by_path( $this->master_project_path);42 $master_project = GP::$project->by_path( Plugin::GP_MASTER_PROJECT ); 49 43 if ( ! $master_project ) { 50 WP_CLI::error( sprintf( "The master project '%s' couldn't be found.", $this->master_project_path), 2 );44 WP_CLI::error( sprintf( "The master project '%s' couldn't be found.", Plugin::GP_MASTER_PROJECT ), 2 ); 51 45 } 52 46
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)