Changeset 12079 for sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/widgets.php
- Timestamp:
- 09/20/2022 07:40:04 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/widgets.php
r10781 r12079 88 88 $post_type_obj = get_post_type_object( $post_type ); 89 89 90 if ( current_user_can( $post_type_obj->cap->read_private_posts ) ) {90 if ( $post_type_obj && current_user_can( $post_type_obj->cap->read_private_posts ) ) { 91 91 $args['post_status'] = array( 'publish', 'private' ); 92 92 }
Note: See TracChangeset
for help on using the changeset viewer.