Making WordPress.org


Ignore:
Timestamp:
09/18/2015 09:45:39 AM (11 years ago)
Author:
dd32
Message:

Translate: On the waiting tab, only display child projects (WordPress/Theme/Plugin/etc) not grandchildren (Development/Readme/etc), and force WordPress projects to appear at the start of the list if there's pending strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/routes/locale.php

    r1883 r1889  
    444444            }
    445445
     446            // Limit to only showing base-level projects
     447            $parent_project_sql .= " AND tp.parent_project_id IN( (SELECT id FROM {$gpdb->projects} WHERE parent_project_id IS NULL AND active = 1) )";
     448
    446449        }
    447450
     
    481484            case 'strings-waiting':
    482485                $filter_where = 'AND (stats.waiting > 0 OR stats.fuzzy > 0 )';
    483                 $filter_order_by = 'stats.fuzzy DESC, stats.waiting DESC, tp.name ASC';
     486                $filter_order_by = "tp.path LIKE 'wp/%%' AND (stats.fuzzy + stats.waiting) > 0 DESC, (stats.fuzzy + stats.waiting) DESC, tp.name ASC";
    484487                break;
    485488
Note: See TracChangeset for help on using the changeset viewer.