id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc 5873,Meaningless query,sunxiyuan,,"file: wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/inc/cli/class-language-pack.php(line: 85) code: {{{ $gp_project = GP::$project->by_path( ""wp-plugins/$slug"" ); if ( ! $gp_project ) { WP_CLI::error( 'Invalid plugin slug.' ); } $stable_tag = $this->get_plugin_stable_tag( $slug ); $branch = ( 'trunk' !== $stable_tag ) ? 'stable' : 'dev'; $gp_project = GP::$project->by_path( ""wp-plugins/$slug/$branch"" ); if ( ! $gp_project ) { WP_CLI::error( 'Invalid plugin branch.' ); } }}} The value of the first $gp_project is overwritten by the second query, so I think the first query is meaningless Or we should only execute the second query when the value is not obtained the first time",defect (bug),closed,normal,,Translate Site & Plugins,maybelater,close,