- Timestamp:
- 04/02/2015 11:48:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r31982 r31990 106 106 'page' => $paged, 107 107 'per_page' => $per_page, 108 'fields' => array( 'last_updated' => true, 'downloaded' => true, 'icons' => true ), 108 'fields' => array( 109 'last_updated' => true, 110 'icons' => true, 111 'active_installs' => true 112 ), 109 113 // Send the locale and installed plugin slugs to the API so it can provide context-sensitive results. 110 114 'locale' => get_locale(), … … 479 483 </div> 480 484 <div class="column-downloaded"> 481 <?php echo sprintf( _n( '%s download', '%s downloads', $plugin['downloaded'] ), number_format_i18n( $plugin['downloaded'] ) ); ?> 485 <?php 486 if ( $plugin['active_installs'] >= 1000000 ) { 487 $active_installs_text = _x( '1+ Million', 'Active plugin installs' ); 488 } else { 489 $active_installs_text = number_format_i18n( $plugin['active_installs'] ) . '+'; 490 } 491 printf( __( '%s Active Installs' ), $active_installs_text ); 492 ?> 482 493 </div> 483 494 <div class="column-compatibility">
Note: See TracChangeset
for help on using the changeset viewer.