Making WordPress.org

Changeset 8523


Ignore:
Timestamp:
03/25/2019 09:22:15 PM (6 years ago)
Author:
ocean90
Message:

Translate: Add a filter for waiting strings with newest/oldest sorting.

Props xkon.
Fixes #1874.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins
Files:
2 edited

Legend:

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

    r8499 r8523  
    115115                $sorts['strings-waiting-and-fuzzy'] = 'Waiting + Fuzzy (Most first)';
    116116                $sorts['strings-waiting-and-fuzzy-asc'] = 'Waiting + Fuzzy (Least first)';
     117                $sorts['strings-waiting-and-fuzzy-by-modified-date'] = 'Waiting + Fuzzy (Newest first)';
     118                $sorts['strings-waiting-and-fuzzy-by-modified-date-asc'] = 'Waiting + Fuzzy (Oldest first)';
    117119                $sorts['percent-completed'] = 'Percent Completed (Most first)';
    118120                $sorts['percent-completed-asc'] = 'Percent Completed (Least first)';
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc/routes/class-locale.php

    r8501 r8523  
    900900                break;
    901901
     902            case 'strings-waiting-and-fuzzy-by-modified-date':
     903                $filter_where = 'AND (stats.waiting > 0 OR stats.fuzzy > 0 ) AND stats.date_modified > "0000-00-00 00:00:00"';
     904                $filter_order_by = "stats.date_modified $sort_order, tp.name ASC";
     905                break;
     906
    902907            case 'percent-completed':
    903908                $filter_where = 'AND stats.untranslated > 0';
Note: See TracChangeset for help on using the changeset viewer.