Making WordPress.org


Ignore:
Timestamp:
12/11/2016 10:10:26 PM (10 years ago)
Author:
ocean90
Message:

Translate: Link locale to locale's project page and show editors in contributor stats table.

Fixes #1388.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc/routes/class-locale.php

    r4511 r4512  
    359359                }
    360360
     361                $editors = array_keys( $locale_contributors['editors'] );
     362
    361363                // Get the names of the contributors.
    362364                foreach ( $contributors as $contributor ) {
    363                         if ( isset( $locale_contributors['editors'][ $contributor->user_id ] ) ) {
    364                                 continue;
    365                         }
    366 
    367 
    368365                        if ( isset( $locale_contributors['contributors'][ $contributor->user_id ] ) ) {
    369366                                // Update last updated and counts per status.
     
    394391                                'waiting_count' => $contributor->waiting_count,
    395392                                'fuzzy_count'   => $contributor->fuzzy_count,
     393                                'is_editor'     => in_array( $user->ID, $editors ),
    396394                        );
    397395                }
    398                 unset( $contributors );
     396                unset( $contributors, $editors );
    399397
    400398                uasort( $locale_contributors['contributors'], array( $this, '_sort_contributors_by_total_count_callback' ) );
Note: See TracChangeset for help on using the changeset viewer.