Changeset 6127 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 11/16/2017 12:03:53 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r6118 r6127 798 798 } 799 799 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 802 803 foreach ( $posts as $i => $post ) { 803 804 // If the plugin is not in the restricted statuses list, show it
Note: See TracChangeset
for help on using the changeset viewer.