Making WordPress.org

Changeset 11939


Ignore:
Timestamp:
07/05/2022 09:00:32 PM (3 years ago)
Author:
iandunn
Message:

GP Profiles: Ignore imports until they can be batch-processed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-profiles/profiles.php

    r11937 r11939  
    3131 */
    3232function add_single_translation_activity( GP_Translation $new_translation, GP_Translation $previous_translation = null ) : void {
    33     $bulk_request = gp_post( 'bulk', null );
     33    $bulk_request   = gp_post( 'bulk', null );
     34    $import_request = isset( $_FILES['import-file'] );
    3435
    35     // Bulk actions are handled by `add_bulk_translation_activity()`.
    36     if ( $bulk_request ) {
     36    // Bulk actions are handled by `add_bulk_translation_activity()`. Importing is blocked by
     37    // https://github.com/GlotPress/GlotPress/issues/1467.
     38    if ( $bulk_request || $import_request ) {
    3739        return;
    3840    }
Note: See TracChangeset for help on using the changeset viewer.