Changeset 1734 for sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/routes/locale.php
- Timestamp:
- 07/12/2015 05:42:47 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/routes/locale.php
r1721 r1734 94 94 $sub_project_statuses = array(); 95 95 foreach ( $sub_projects as $key => $_sub_project ) { 96 $status = $this->get_project_status( $_sub_project, $locale_slug, $set_slug ); 97 if ( ! $status->all_count ) { 98 unset( $sub_projects[ $key ] ); 99 } 96 $status = $this->get_project_status( $_sub_project, $locale_slug, $set_slug, null, false ); 100 97 101 98 $sub_project_statuses[ $_sub_project->id ] = $status; … … 181 178 $status->fuzzy_count = 0; 182 179 $status->all_count = 0; 180 $status->percent_complete = 0; 183 181 } 184 182 … … 195 193 $status->fuzzy_count += (int) $set->fuzzy_count(); 196 194 $status->all_count += (int) $set->all_count(); 195 196 if ( $status->all_count ) { 197 $status->percent_complete = floor( $status->current_count / $status->all_count * 100 ); 198 } 197 199 } 198 200 … … 201 203 if ( $sub_projects ) { 202 204 foreach ( $sub_projects as $sub_project ) { 203 $this->get_project_status( $sub_project, $locale, $set_slug, $status );205 $this->get_project_status( $sub_project, $locale, $set_slug, $status, false ); 204 206 } 205 207 }
Note: See TracChangeset
for help on using the changeset viewer.