Making WordPress.org


Ignore:
Timestamp:
10/07/2016 06:37:32 AM (8 years ago)
Author:
dd32
Message:

Plugin Directory: Conditionally show the Tested up to: field based on whether the plugin has specified one, Automatically display the latest compatible minor release when appropriate.
For example, a plugin specifying Tested up to: 4.5.1 should automatically display Tested up to: 4.5.2 as appropriate.

Fixes #2093

File:
1 edited

Legend:

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

    r4182 r4201  
    5656            </li>
    5757            <li><?php printf( __( 'Active installs: %s', 'wporg-plugins' ), '<strong>' . Template::active_installs( false ) . '</strong>' ); ?></li>
    58             <li><?php printf( __( 'Tested up to: %s', 'wporg-plugins' ), '<strong>' . (string) get_post_meta( $post->ID, 'tested', true ) . '</strong>' ); ?></li>
     58            <?php if ( $tested_up_to = (string) get_post_meta( $post->ID, 'tested', true ) ) { ?>
     59                <li><?php printf( __( 'Tested up to: %s', 'wporg-plugins' ), '<strong>' . $tested_up_to . '</strong>' ); ?></li>
     60            <?php } ?>
    5961            <?php if ( $tags = get_the_term_list( $post->ID, 'plugin_tags', '<div class="tags">', '', '</div>' ) ) : ?>
    6062                <li><?php printf( _n( 'Tag: %s', 'Tags: %s', count( get_the_terms( $post, 'plugin_tags' ) ), 'wporg-plugins' ), $tags ); ?></li>
Note: See TracChangeset for help on using the changeset viewer.