Skip to content

Commit

Permalink
Coding Standards: Remove loose comparison in `wp-admin/includes/plugi…
Browse files Browse the repository at this point in the history
…n-install.php`.

This more closely represents how the active installations count is displayed in the Plugin Directory.

See #52627.

git-svn-id: https://develop.svn.wordpress.org/trunk@50783 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Apr 22, 2021
1 parent f1466b8 commit 2464d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-admin/includes/plugin-install.php
Expand Up @@ -689,7 +689,7 @@ function install_plugin_information() {
_nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ),
number_format_i18n( $active_installs_millions )
);
} elseif ( 0 == $api->active_installs ) {
} elseif ( $api->active_installs < 10 ) {
_ex( 'Less Than 10', 'Active plugin installations' );
} else {
echo number_format_i18n( $api->active_installs ) . '+';
Expand Down

0 comments on commit 2464d69

Please sign in to comment.