Making WordPress.org

Changeset 11991


Ignore:
Timestamp:
07/22/2022 08:34:00 AM (4 years ago)
Author:
ocean90
Message:

Translate: Skip Slack notifications for new strings if no new strings have been added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-slack-integrations/integrations/log-imported-originals.php

    r11727 r11991  
    5252        function process_import( $project_id, $originals_added, $originals_existing, $originals_obsoleted, $originals_fuzzied ) {
    5353                if ( ! in_array( $project_id, self::ALLOWED_PROJECTS, true ) ) {
     54                        return;
     55                }
     56
     57                // Ignore import if no new strings have been added/fuzzied.
     58                if ( ! $originals_added && ! $originals_fuzzied ) {
    5459                        return;
    5560                }
Note: See TracChangeset for help on using the changeset viewer.