WordPress.org

Making WordPress.org


Ignore:
Timestamp:
11/16/17 00:03:53 (5 weeks ago)
Author:
SergeyBiryukov
Message:

Plugin Directory: After [6118], allow logged-in users to view closed/disabled plugins as well.

See #2627.

File:
1 edited

Legend:

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

    r6118 r6127  
    798798                } 
    799799 
    800                 // Only the 'publish' cap shouldn't be affected by cap checks. 
    801                 $restricted_access_statii = array_diff( $wp_query->query_vars['post_status'], array( 'publish' ) ); 
     800                // Published, closed, or disabled plugins shouldn't be affected by cap checks. 
     801                $restricted_access_statii = array_diff( $wp_query->query_vars['post_status'], array( 'publish', 'closed', 'disabled' ) ); 
     802 
    802803                foreach ( $posts as $i => $post ) { 
    803804                    // If the plugin is not in the restricted statuses list, show it 
Note: See TracChangeset for help on using the changeset viewer.