Making WordPress.org


Ignore:
Timestamp:
01/20/2019 11:07:15 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Plugin Directory: Introduce Template::is_plugin_outdated() to check if the plugin was tested with the latest 3 major releases of WordPress.

See #4088.

File:
1 edited

Legend:

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

    r7602 r8115  
    179179    switch ( $post_status ) {
    180180        case 'publish':
    181             $tested_up_to             = (string) get_post_meta( get_post( $post )->ID, 'tested', true );
    182             $version_to_check_against = (string) ( get_current_major_wp_version() - 0.2 );
    183             if ( version_compare( $version_to_check_against, $tested_up_to, '>' ) ) {
     181            if ( Template::is_plugin_outdated( $post ) ) {
    184182                $message = sprintf(
    185183                    $warning_notice,
Note: See TracChangeset for help on using the changeset viewer.