Changeset 42829
- Timestamp:
- 03/12/2018 01:56:20 AM (7 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r42827 r42829 651 651 <?php 652 652 if ( $plugin['active_installs'] >= 1000000 ) { 653 $active_installs_text = _x( '1+ Million', 'Active plugin installations' ); 653 $active_installs_millions = floor( $plugin['active_installs'] / 1000000 ); 654 $active_installs_text = sprintf( 655 _nx( '%s+ Million', '%s+ Million', 'Active plugin installations', $active_installs_millions ), 656 number_format_i18n( $active_installs_millions ) 657 ); 654 658 } elseif ( 0 == $plugin['active_installs'] ) { 655 659 $active_installs_text = _x( 'Less Than 10', 'Active plugin installations' ); -
trunk/src/wp-admin/includes/plugin-install.php
r42686 r42829 653 653 <?php 654 654 if ( $api->active_installs >= 1000000 ) { 655 _ex( '1+ Million', 'Active plugin installations' ); 655 $active_installs_millions = floor( $api->active_installs / 1000000 ); 656 printf( 657 _nx( '%s+ Million', '%s+ Million', 'Active plugin installations', $active_installs_millions ), 658 number_format_i18n( $active_installs_millions ) 659 ); 656 660 } elseif ( 0 == $api->active_installs ) { 657 661 _ex( 'Less Than 10', 'Active plugin installations' );
Note: See TracChangeset
for help on using the changeset viewer.