Making WordPress.org


Ignore:
Timestamp:
01/07/2019 04:26:56 AM (8 years ago)
Author:
dd32
Message:

Plugin Directory: Hide most Widgets & Tags for non-privledged users when a plugin is closed.

This continues to show all widgets (including tags) on the Advanced view for privledged users, but hides it for all logged out and non-privledged users.

Fixes #4036.

File:
1 edited

Legend:

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

    r7631 r8032  
    186186                        ?>
    187187
    188                         <?php if ( $tags = get_the_term_list( $post->ID, 'plugin_tags', '<div class="tags">', '', '</div>' ) ) : ?>
     188                        <?php if ( empty( $args['hide_tags'] ) && $tags = get_the_term_list( $post->ID, 'plugin_tags', '<div class="tags">', '', '</div>' ) ) : ?>
    189189                                <li class="clear">
    190190                                        <?php
Note: See TracChangeset for help on using the changeset viewer.