Making WordPress.org


Ignore:
Timestamp:
06/14/2016 10:46:18 AM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Add a notice for outdated plugins.

Adds a notice alerting users of a plugin that hasn't been updated in over
two years. Eventually this will not be time based, but based on the
"Tested up to" version.

See #1580.

File:
1 edited

Legend:

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

    r3352 r3356  
    2020
    2121?><article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     22    <?php if ( time() - get_post_modified_time() > 2 * YEAR_IN_SECONDS ) : ?>
     23        <div class="plugin-notice notice notice-warning notice-alt">
     24            <p><?php _e( 'This plugin <strong>hasn&#146;t been updated in over 2 years</strong>. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.', 'wporg-plugins' ); ?></p>
     25        </div><!-- .plugin-notice -->
     26    <?php endif; ?>
     27
    2228    <?php echo Template::get_plugin_banner( get_post(), 'html' ); ?>
    2329
Note: See TracChangeset for help on using the changeset viewer.