Making WordPress.org


Ignore:
Timestamp:
01/07/2019 04:26:56 AM (6 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 copied

Legend:

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

    r8028 r8032  
    11<?php
    22/**
    3  * Template part for displaying the Plugin Sidebar.
     3 * Template part for displaying a Closed Plugin Sidebar.
    44 *
    55 * @link https://codex.wordpress.org/Template_Hierarchy
     
    1515);
    1616
    17 the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Meta', array(), $widget_args );
    18 the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Ratings', array(), $widget_args );
    19 the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Contributors', array(), array(
    20     'before_title'  => '<h4 class="widget-title">',
    21     'after_title'   => '</h4>',
    22     'before_widget' => '<div id="plugin-contributors" class="widget plugin-contributors">',
    23     'after_widget'  => '</div>',
    24 ) );
    25 the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Support', array(), $widget_args );
    26 the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Donate', array(), $widget_args );
     17the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Meta', array(), $widget_args + array( 'hide_tags' => true ) );
Note: See TracChangeset for help on using the changeset viewer.