Making WordPress.org


Ignore:
Timestamp:
01/27/2019 03:55:00 PM (8 years ago)
Author:
ocean90
Message:

Translate: Don't check for threshold if no current translations exist.

See #4057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/inc/cli/class-language-pack.php

    r4509 r8146  
    503503                        }
    504504
     505                        // Check if any current translations exist.
     506                        if ( 0 === $set->current_count() ) {
     507                                WP_CLI::log( "Skip {$wp_locale}, no translations." );
     508                                continue;
     509                        }
     510
    505511                        // Check if percent translated is above threshold.
    506512                        $percent_translated = $set->percent_translated();
Note: See TracChangeset for help on using the changeset viewer.