Changeset 1139 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/wp-i18n-teams.php
- Timestamp:
- 01/14/2015 12:20:37 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/wp-i18n-teams.php
r1068 r1139 174 174 } 175 175 foreach ( $counts as $locale => $count ) { 176 $percentages[ $locale ] = floor( $count['current'] / $count['total'] * 100 );176 $percentages[ $locale ] = ( $count['total'] > 0 ) ? floor( $count['current'] / $count['total'] * 100 ) : 0; 177 177 } 178 178 set_transient( 'core_translation_data', $percentages, 900 );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)