WordPress.org

Making WordPress.org


Ignore:
Timestamp:
12/03/2017 09:41:48 PM (8 months ago)
Author:
Otto42
Message:

Plugins: Modify how the plugin pages look for closed plugins.

  • Display that the plugin was closed and when (if we have that information)
  • Show plugin author a notification box telling them to contact plugins@ if they didn't get an email why
  • Hide most of the content from the readme
  • Don't display the plugin name, just the slug in its place
  • Hide icons, banners, any content from the plugin author
  • Leave space for reasons of closure for future enhancement

Fixes #2627. props @joostdevalk, @otto42

File:
1 edited

Legend:

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

    r6118 r6225  
    1414
    1515<div id="admin" class="section">
     16    <?php
     17    $status  = get_post_status();
     18    if ( in_array( $status, array( 'closed', 'disabled' ) ) ) {
     19        echo '<div class="plugin-notice notice notice-error notice-alt"><p>' . __( 'This plugin has been closed and is no longer available for download.', 'wporg-plugins' ) . '</p></div>';
     20        if ( get_current_user_id() == get_post()->post_author ) {
     21            echo '<div class="plugin-notice notice notice-info notice-alt"><p>' .
     22                                sprintf(
     23                                /* translators: 1: plugins@wordpress.org */
     24                                    __( 'If you did not request this change, please contact <a href="mailto:%1$s">%1$s</a> for a status. All developers with commit access are contacted when a plugin is closed, with the reasons why, so check your spam email too.', 'wporg-plugins' ),
     25                                    'plugins@wordpress.org'
     26                                ) . '</p></div><!-- .plugin-notice -->';
     27        }
     28    }
     29
     30    ?>
    1631    <h2><?php _e( 'Plugin Stats', 'wporg-plugins' ); ?></h2>
    1732
Note: See TracChangeset for help on using the changeset viewer.