Making WordPress.org

Changeset 11774


Ignore:
Timestamp:
04/19/2022 02:12:18 AM (4 years ago)
Author:
dd32
Message:

Plugin Directory: Properly show "10+" for Active Installs on WordPress.org plugin pages.

The API (and therefor WordPress core) properly show 10+ here, but on WordPress.org we were incorrectly checking for <=.

0 = Less than 10, 10 = 10+, 20 = 20+, etc.

Props hardiksharma for noticing.
Fixes #6281.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php

    r10668 r11774  
    250250                if ( 'closed' === $post->post_status ) {
    251251                        $text = __( 'N/A', 'wporg-plugins' );
    252                 } elseif ( $count <= 10 ) {
     252                } elseif ( $count < 10 ) {
    253253                        $text = __( 'Fewer than 10', 'wporg-plugins' );
    254254                } elseif ( $count >= 1000000 ) {
Note: See TracChangeset for help on using the changeset viewer.