IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 2424 | 2424 | } |
| 2425 | 2425 | |
| 2426 | 2426 | if ( ! empty( $post_type_object ) ) { |
| 2427 | | $edit_cap = $post_type_object->cap->edit_post; |
| 2428 | | $read_cap = $post_type_object->cap->read_post; |
| 2429 | 2427 | $edit_others_cap = $post_type_object->cap->edit_others_posts; |
| 2430 | 2428 | $read_private_cap = $post_type_object->cap->read_private_posts; |
| 2431 | 2429 | } else { |
| 2432 | | $edit_cap = 'edit_' . $post_type_cap; |
| 2433 | | $read_cap = 'read_' . $post_type_cap; |
| 2434 | 2430 | $edit_others_cap = 'edit_others_' . $post_type_cap . 's'; |
| 2435 | 2431 | $read_private_cap = 'read_private_' . $post_type_cap . 's'; |
| 2436 | 2432 | } |
| … |
… |
|
| 2701 | 2697 | $status = get_post_status($this->posts[0]); |
| 2702 | 2698 | $post_status_obj = get_post_status_object($status); |
| 2703 | 2699 | //$type = get_post_type($this->posts[0]); |
| | 2700 | |
| | 2701 | //reload post type object now that we have the actual post type |
| | 2702 | $post_type_object = get_post_type_object($this->posts[0]->post_type); |
| | 2703 | if (!empty($post_type_object)) { |
| | 2704 | $edit_cap = $post_type_object->cap->edit_post; |
| | 2705 | $read_cap = $post_type_object->cap->read_post; |
| | 2706 | } else { |
| | 2707 | $edit_cap = 'edit_' . $post_type_cap; |
| | 2708 | $read_cap = 'read_' . $post_type_cap; |
| | 2709 | } |
| | 2710 | |
| 2704 | 2711 | if ( !$post_status_obj->public ) { |
| 2705 | 2712 | if ( ! is_user_logged_in() ) { |
| 2706 | 2713 | // User must be logged in to view unpublished posts. |