mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Plugins: Display 'Less Than 10' active installs of a plugin rather than '0+' active installs.
Props ovann86. Fixes #37509. git-svn-id: https://develop.svn.wordpress.org/trunk@38729 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -556,10 +556,12 @@ function install_plugin_information() {
|
||||
</li>
|
||||
<?php } if ( ! empty( $api->tested ) ) { ?>
|
||||
<li><strong><?php _e( 'Compatible up to:' ); ?></strong> <?php echo $api->tested; ?></li>
|
||||
<?php } if ( ! empty( $api->active_installs ) ) { ?>
|
||||
<?php } if ( isset( $api->active_installs ) ) { ?>
|
||||
<li><strong><?php _e( 'Active Installs:' ); ?></strong> <?php
|
||||
if ( $api->active_installs >= 1000000 ) {
|
||||
_ex( '1+ Million', 'Active plugin installs' );
|
||||
} elseif ( 0 == $api->active_installs ) {
|
||||
_ex( 'Less Than 10', 'Active plugin installs' );
|
||||
} else {
|
||||
echo number_format_i18n( $api->active_installs ) . '+';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user