diff --git wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/i18n/class-code-import.php wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/i18n/class-code-import.php
index cff90f2ae..89e452edc 100644
|
|
class Code_Import extends I18n_Import { |
47 | 47 | } |
48 | 48 | |
49 | 49 | $pot_file = "{$tmp_directory}/{$this->plugin}-code.pot"; |
50 | | $makepot = new \MakePOT(); |
51 | 50 | |
52 | | if ( ! $makepot->wp_plugin( $export_directory, $pot_file, $this->plugin ) || ! file_exists( $pot_file ) ) { |
| 51 | exec( |
| 52 | sprintf( 'wp i18n make-pot %s %s', escapeshellarg( $export_directory ), escapeshellarg( $pot_file ) ), |
| 53 | $output, |
| 54 | $return_code |
| 55 | ); |
| 56 | |
| 57 | if ( $return_code !== 0 || ! file_exists( $pot_file ) ) { |
53 | 58 | throw new Exception( "POT file couldn't be created." ); |
54 | 59 | } |
55 | 60 | |