Making WordPress.org

Changeset 8171


Ignore:
Timestamp:
02/01/2019 04:51:18 AM (6 years ago)
Author:
tellyworth
Message:

Plugin directory: don't show active install count for closed plugins.

Fixes #4101

File:
1 edited

Legend:

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

    r8118 r8171  
    252252        $count = get_post_meta( $post->ID, 'active_installs', true ) ?: 0;
    253253
    254         if ( $count <= 10 ) {
     254        if ( 'closed' === $post->post_status ) {
     255            $text = __( 'N/A', 'wporg-plugins' );
     256        } elseif ( $count <= 10 ) {
    255257            $text = __( 'Fewer than 10', 'wporg-plugins' );
    256258        } elseif ( $count >= 1000000 ) {
Note: See TracChangeset for help on using the changeset viewer.