WordPress.org

Making WordPress.org

Changeset 7617


Ignore:
Timestamp:
08/17/2018 12:22:27 AM (3 years ago)
Author:
dd32
Message:

Translate: Hide the 100% translated filter on the 'Waiting' special project, as it's not of use there.

H/t garrett-eclipse.
Fixes #3765.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/locale-projects.php

    r7615 r7617  
    100100                $sorts['percent-completed'] = 'Percent Completed (Most first)';
    101101                $sorts['percent-completed-asc'] = 'Percent Completed (Least first)';
    102                 $sorts['completed-asc'] = '100% Translations';
     102
     103                // Completed project filter, except on the 'waiting' project.
     104                if ( $project->slug != 'waiting' ) {
     105                    $sorts['completed-asc'] = '100% Translations';
     106                }
    103107
    104108                foreach ( $sorts as $value => $text ) {
Note: See TracChangeset for help on using the changeset viewer.