Making WordPress.org


Ignore:
Timestamp:
12/07/2015 04:14:47 PM (10 years ago)
Author:
ocean90
Message:

Translate: Disable translation propagation when importing translations, temporarily.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-specifics.php

    r1814 r2167  
    1313        $this->add_action( 'init' );
    1414        $this->add_filter( 'projects', array( 'args' => 2 ) );
     15        $this->add_action( 'before_request', array( 'args' => 2 ) );
     16    }
     17
     18    function before_request( $class_name, $last_method_called ) {
     19        if ( 'GP_Route_Translation' === $class_name && 'import_translations_post' === $last_method_called ) {
     20            add_filter( 'enable_propagate_translations_across_projects', '__return_false' );
     21        }
    1522    }
    1623
Note: See TracChangeset for help on using the changeset viewer.