Changeset 6287 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/i18n/class-code-import.php
- Timestamp:
- 12/19/2017 04:22:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/i18n/class-code-import.php
r5446 r6287 30 30 } 31 31 32 $tmp_directory = Filesystem::temp_directory( $this->plugin . '-code-' . $tag );32 $tmp_directory = Filesystem::temp_directory( $this->plugin . '-code-' . $tag ); 33 33 $export_directory = $tmp_directory . '/export'; 34 34 … … 48 48 49 49 $pot_file = "{$tmp_directory}/{$this->plugin}-code.pot"; 50 $makepot = new \MakePOT ;50 $makepot = new \MakePOT(); 51 51 52 52 if ( ! $makepot->wp_plugin( $export_directory, $pot_file, $this->plugin ) || ! file_exists( $pot_file ) ) { … … 81 81 // Whether plugin files should be checked for valid text domains. 82 82 if ( empty( $readme->requires ) || version_compare( $readme->requires, '4.6', '<' ) ) { 83 $error = new WP_Error();83 $error = new WP_Error(); 84 84 $esc_export_directory = escapeshellarg( $export_directory ); 85 85
Note: See TracChangeset
for help on using the changeset viewer.