Changeset 47178 for trunk/src/wp-includes/capabilities.php
- Timestamp:
- 02/04/2020 10:13:15 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r47122 r47178 242 242 243 243 $status_obj = get_post_status_object( $post->post_status ); 244 if ( ! $status_obj ) { 245 /* translators: 1: Post status, 2: Capability name. */ 246 _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post status %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post with that status.' ), $post->post_status, $cap ), '5.4.0' ); 247 $caps[] = 'edit_others_posts'; 248 break; 249 } 250 244 251 if ( $status_obj->public ) { 245 252 $caps[] = $post_type->cap->read;
Note: See TracChangeset
for help on using the changeset viewer.