Changeset 24593 for trunk/wp-includes/query.php
- Timestamp:
- 07/08/2013 08:05:42 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r24456 r24593 2441 2441 } 2442 2442 2443 $edit_cap = 'edit_post'; 2444 $read_cap = 'read_post'; 2445 2443 2446 if ( ! empty( $post_type_object ) ) { 2444 $edit_cap = $post_type_object->cap->edit_post;2445 $read_cap = $post_type_object->cap->read_post;2446 2447 $edit_others_cap = $post_type_object->cap->edit_others_posts; 2447 2448 $read_private_cap = $post_type_object->cap->read_private_posts; 2448 2449 } else { 2449 $edit_cap = 'edit_' . $post_type_cap;2450 $read_cap = 'read_' . $post_type_cap;2451 2450 $edit_others_cap = 'edit_others_' . $post_type_cap . 's'; 2452 2451 $read_private_cap = 'read_private_' . $post_type_cap . 's';
Note: See TracChangeset
for help on using the changeset viewer.