Making WordPress.org


Ignore:
Timestamp:
04/05/2017 04:50:33 AM (8 years ago)
Author:
dd32
Message:

Plugin Directory: Rename the Admin section to Advanced and enable all users to view it (including logged out anonymous users).

See #2365

File:
1 edited

Legend:

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

    r5210 r5248  
    7373            <?php endif; ?>
    7474
    75             <?php if ( current_user_can( 'plugin_admin_view', $post ) ) : ?>
     75            <?php if ( ! get_query_var( 'plugin_advanced' ) ) : ?> 
    7676                <li class="hide-if-no-js">
    7777                    <?php
    78                         printf( __( 'Admin access: %s', 'wporg-plugins' ),
    79                             sprintf( '<strong><a class="plugin-admin" href="%s">%s</a></strong>', esc_url( get_permalink() . 'admin/' ), __( 'View Admin', 'wporg-plugins' ) )
    80                         );
     78                        printf( '<strong><a class="plugin-admin" href="%s">%s</a></strong>', esc_url( get_permalink() . 'advanced/' ), __( 'Advanced View', 'wporg-plugins' ) );
    8179                    ?>
    8280                </li>
Note: See TracChangeset for help on using the changeset viewer.