Making WordPress.org


Ignore:
Timestamp:
04/06/2020 01:26:02 AM (5 years ago)
Author:
dd32
Message:

Plugin Directory: Make the Advanced view a bit more friendly.

This adds more descriptive text to the "Close this plugin" button and makes it clearer that these operations aren't available to everyone (and are potentially destructive).

Props Ipstenu.
Fixes #1560.

File:
1 edited

Legend:

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

    r9672 r9698  
    1818    <?php the_closed_plugin_notice(); ?>
    1919
    20     <h2><?php esc_html_e( 'Plugin Stats', 'wporg-plugins' ); ?></h2>
     20    <h2><?php esc_html_e( 'Statistics', 'wporg-plugins' ); ?></h2>
    2121
    2222    <h4><?php esc_html_e( 'Active versions', 'wporg-plugins' ); ?></h4>
     
    2929    <div id="plugin-growth-stats" class="chart download-stats"></div>
    3030
    31     <h5><?php esc_html_e( 'Downloads history', 'wporg-plugins' ); ?></h5>
     31    <h4><?php esc_html_e( 'Downloads history', 'wporg-plugins' ); ?></h4>
    3232    <table id="plugin-download-history-stats" class="download-history-stats">
    3333        <tbody></tbody>
    3434    </table>
    3535
     36    <hr>
     37
     38    <h2><?php esc_html_e( 'Advanced Options', 'wporg-plugins' ); ?></h2>
     39
     40    <p><?php esc_html_e( 'This section is intended for advanced users and developers only. They are presented here for testing and educational purposes.', 'wporg-plugins' ); ?></p>
     41
    3642    <?php the_previous_version_download(); ?>
     43
     44    <hr>
     45
     46    <h2><?php esc_html_e( 'The Danger Zone', 'wporg-plugins' ); ?></h2>
     47
     48    <p><?php esc_html_e( 'The following features are restricted to plugin committers only. They exist to allow plugin developers more control over their work.', 'wporg-plugins' ); ?></p>
     49
     50    <div class="plugin-notice notice notice-error notice-alt"><p><?php esc_html_e( 'These features often cannot be undone without intervention. Please do not attempt to use them unless you are absolutely certain. When in doubt, contact the plugins team for assistance.', 'wporg-plugins' ); ?></p></div>
    3751
    3852    <?php the_plugin_self_close_button(); ?>
Note: See TracChangeset for help on using the changeset viewer.