Making WordPress.org


Ignore:
Timestamp:
04/20/2016 11:59:45 AM (9 years ago)
Author:
dd32
Message:

Plugin Directory: Use the new stat fields introduced with r2985.

See #1596

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-tags.php

    r2612 r2986  
    3535
    3636function worg_plugins_template_active_installs( $full = true ) {
    37     $count = WordPressdotorg\Plugin_Directory\Template::get_active_installs_count( get_post()->post_name );
     37    $count = WordPressdotorg\Plugin_Directory\Template::get_active_installs_count();
    3838
    39     if ( ! $count ) {
     39    if ( $count <= 10 ) {
    4040        $text = __( 'Less than 10', 'wporg-plugins' );
    4141    } elseif ( $count >= 1000000 ) {
Note: See TracChangeset for help on using the changeset viewer.