Making WordPress.org


Ignore:
Timestamp:
10/08/2017 12:17:53 PM (8 years ago)
Author:
ocean90
Message:

Translate: Ensure consistent order of development and stable projects for plugins.

Fixes #2153.

File:
1 edited

Legend:

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

    r5502 r6008  
    161161
    162162            <?php
     163            if ( 'wp-plugins' === $project->path ) {
     164                // Ensure consistent order of development and stable projects.
     165                usort( $sub_projects, function( $a, $b ) {
     166                    return strnatcasecmp( $a->name, $b->name );
     167                } );
     168            }
     169
    163170            foreach ( $sub_projects as $sub_project ) {
    164171                $status = $sub_project_statuses[ $sub_project->id ];
     
    236243                    get_avatar( $contributor->email, 40 ),
    237244                    $contributor->display_name ? $contributor->display_name : $contributor->nicename,
    238                     human_time_diff( strtotime(  $contributor->last_update ) ),
     245                    human_time_diff( strtotime( $contributor->last_update ) ),
    239246                    number_format_i18n( $contributor->total_count ),
    240247                    number_format_i18n( $contributor->current_count ),
Note: See TracChangeset for help on using the changeset viewer.