Changeset 5488 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/i18n/class-i18n-import.php
- Timestamp:
- 05/14/2017 09:23:41 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/i18n/class-i18n-import.php
r5444 r5488 75 75 $cmd = WPORGTRANSLATE_WPCLI . ' wporg-translate set-plugin-project ' . escapeshellarg( $plugin_slug ) . ' ' . escapeshellarg( $process_type ); 76 76 77 $last_line = system( $cmd, $return_code ); 77 $return_code = 0; 78 $output = []; 79 exec( $cmd, $output, $return_code ); 80 $last_line = array_pop( $output ); 78 81 79 82 if ( 0 === $return_code ) { … … 122 125 // Note: this will only work if the GlotPress project/sub-projects exist. 123 126 $cmd = WPORGTRANSLATE_WPCLI . ' glotpress import-originals ' . escapeshellarg( "wp-plugins/{$project}/{$branch}" ) . ' ' . escapeshellarg( $file ); 124 e cho shell_exec( $cmd ) . "\n";127 exec( $cmd ); 125 128 126 129 if ( empty( $str_priorities ) ) { … … 228 231 229 232 $cmd = WPORGTRANSLATE_WPCLI . ' wporg-translate import-plugin-translations ' . escapeshellarg( "wp-plugins/{$project}/{$branch}" ) . ' ' . escapeshellarg( $language ) . ' ' . escapeshellarg( $file ) . ' --format=' . escapeshellarg( $ext ); 230 e cho shell_exec( $cmd . ' 2>&1');233 exec( $cmd ); 231 234 } 232 235 }
Note: See TracChangeset
for help on using the changeset viewer.