Changeset 3515 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/i18n/class-readme-import.php
- Timestamp:
- 06/21/2016 09:32:38 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/i18n/class-readme-import.php
r3507 r3515 39 39 */ 40 40 public function import_from_tag( $tag ) { 41 global $wpdb;42 43 41 $files = SVN::ls( self::PLUGIN_SVN_BASE . "/{$this->plugin}/{$tag}" ); 44 42 if ( ! $files ) { … … 151 149 } 152 150 153 parent::set_glotpress_for_plugin( $this->plugin, 'readme' ); 151 $result = $this->set_glotpress_for_plugin( $this->plugin, 'readme' ); 152 if ( is_wp_error( $result ) ) { 153 throw new Exception( $result->get_error_message() ); 154 } 154 155 155 156 $branch = ( 'trunk' === $tag ) ? 'dev' : 'stable'; 156 parent::import_pot_to_glotpress_project( $this->plugin, $branch, $pot_file, $str_priorities );157 $this->import_pot_to_glotpress_project( $this->plugin, $branch, $pot_file, $str_priorities ); 157 158 } 158 159 … … 166 167 * @return array 167 168 */ 168 function handle_translator_comment( $array, $key, $val ) {169 private function handle_translator_comment( $array, $key, $val ) { 169 170 $val = trim( preg_replace( '/[^a-z0-9]/i', ' ', $val ) ); // cleanup key names for display. 170 171
Note: See TracChangeset
for help on using the changeset viewer.