Making WordPress.org

Changeset 1861


Ignore:
Timestamp:
09/03/2015 04:38:52 AM (11 years ago)
Author:
dd32
Message:

Translate: Stats Overview: We don't want to count inactive sub projects in the percentage calculations - wp/4.2.x/twentyten exists for example, but is hidden in the UI.

See #1202

File:
1 edited

Legend:

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

    r1854 r1861  
    5353
    5454                        foreach ( $project->inclusive_sub_projects() as $sub ) {
    55                                 $project_ids[] = $sub->id;
     55                                if ( $sub->active ) {
     56                                        $project_ids[] = $sub->id;
     57                                }
    5658                        }
    5759                        unset( $sub );
Note: See TracChangeset for help on using the changeset viewer.