WordPress.org

Making WordPress.org

Changeset 2946


Ignore:
Timestamp:
04/13/2016 02:40:42 PM (6 years ago)
Author:
ocean90
Message:

Translate, Plugin Directory: Remove the propagation argument for plugin imports via CLI. It's no longer part of GlotPress.

See #1667.

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  
    2929     * [--set=<set>]
    3030     * : Translation set slug: Default: "default"
    31      *
    32      * [--disable-propagating]
    33      * : If set, propagation will be disabled.
    3431     */
    3532    public function __invoke( $args, $assoc_args ) {
     
    6865        }
    6966
    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 
    7667        add_filter( 'translation_set_import_over_existing', '__return_false' );
    7768        //add_filter( 'translation_set_import_status', array( $this, '__string_status_waiting' ) );
     
    8374        remove_filter( 'translation_set_import_over_existing', '__return_false' );
    8475
    85         if ( $disable_propagating ) {
    86             remove_filter( 'enable_propagate_translations_across_projects', '__return_false' );
    87         }
    88 
    8976        WP_CLI::success( "Imported $imported strings for {$locale->english_name} [$file]" );
    9077    }
Note: See TracChangeset for help on using the changeset viewer.