Changeset 2946
- Timestamp:
- 04/13/2016 02:40:42 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-plugin-directory/inc/cli/class-import-plugin-translations.php
r2881 r2946 29 29 * [--set=<set>] 30 30 * : Translation set slug: Default: "default" 31 *32 * [--disable-propagating]33 * : If set, propagation will be disabled.34 31 */ 35 32 public function __invoke( $args, $assoc_args ) { … … 68 65 } 69 66 70 $disable_propagating = isset( $assoc_args['disable-propagating'] );71 72 if ( $disable_propagating ) {73 add_filter( 'enable_propagate_translations_across_projects', '__return_false' );74 }75 76 67 add_filter( 'translation_set_import_over_existing', '__return_false' ); 77 68 //add_filter( 'translation_set_import_status', array( $this, '__string_status_waiting' ) ); … … 83 74 remove_filter( 'translation_set_import_over_existing', '__return_false' ); 84 75 85 if ( $disable_propagating ) {86 remove_filter( 'enable_propagate_translations_across_projects', '__return_false' );87 }88 89 76 WP_CLI::success( "Imported $imported strings for {$locale->english_name} [$file]" ); 90 77 }
Note: See TracChangeset
for help on using the changeset viewer.