Changeset 5488
- Timestamp:
- 05/14/2017 09:23:41 PM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 2 edited
-
cli/i18n/class-i18n-import.php (modified) (3 diffs)
-
jobs/class-plugin-i18n-import.php (modified) (1 diff)
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 } -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-plugin-i18n-import.php
r5458 r5488 110 110 111 111 $cmd = self::PHP . ' ' . dirname( __DIR__ ) . "/bin/import-plugin-to-glotpress.php --plugin {$esc_plugin_slug} --tag {$esc_tag} --type {$esc_type}"; 112 113 echo "\n\$$cmd\n"; 114 echo shell_exec( $cmd ) . "\n"; 112 exec( $cmd ); 115 113 } 116 114 } 117 118 115 }
Note: See TracChangeset
for help on using the changeset viewer.