Changeset 24593 for trunk/wp-includes/admin-bar.php
- Timestamp:
- 07/08/2013 08:05:42 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/admin-bar.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/admin-bar.php
r24214 r24593 430 430 && 'add' != $current_screen->action 431 431 && ( $post_type_object = get_post_type_object( $post->post_type ) ) 432 && current_user_can( $post_type_object->cap->read_post, $post->ID )432 && current_user_can( 'read_post', $post->ID ) 433 433 && ( $post_type_object->public ) 434 434 && ( $post_type_object->show_in_admin_bar ) ) … … 458 458 if ( ! empty( $current_object->post_type ) 459 459 && ( $post_type_object = get_post_type_object( $current_object->post_type ) ) 460 && current_user_can( $post_type_object->cap->edit_post, $current_object->ID )460 && current_user_can( 'edit_post', $current_object->ID ) 461 461 && $post_type_object->show_ui && $post_type_object->show_in_admin_bar ) 462 462 {
Note: See TracChangeset
for help on using the changeset viewer.