Making WordPress.org

Changeset 7175


Ignore:
Timestamp:
04/28/2018 11:47:50 AM (7 years ago)
Author:
ocean90
Message:

Translate, Plugin Directory: Include fuzzy status in check for existing translations and clear the cache after a sync.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-plugin-directory/inc/sync/class-translation-sync.php

    r4019 r7175  
    232232            'translation_set_id' => $new_translation_set->id,
    233233            'original_id'        => $new_original->id,
    234             'status'             => [ 'current', 'waiting' ],
     234            'status'             => [ 'current', 'waiting', 'fuzzy' ],
    235235        ] );
    236236
     
    243243            if ( $existing_translation === $new_translation ) {
    244244                $_existing_translation->set_as_current();
     245                gp_clean_translation_set_cache( $new_translation_set->id );
     246
    245247                return true;
    246248            }
     
    258260
    259261        $translation->set_as_current();
     262        gp_clean_translation_set_cache( $new_translation_set->id );
    260263
    261264        return true;
Note: See TracChangeset for help on using the changeset viewer.