Ticket #22247: 22247.diff
File 22247.diff, 617 bytes (added by , 8 years ago) |
---|
-
wp-includes/admin-bar.php
454 454 if ( empty( $current_object ) ) 455 455 return; 456 456 457 if ( ! empty( $current_object->post_type ) 457 if ( ! empty( $current_object->post_type ) && $current_object->ID 458 458 && ( $post_type_object = get_post_type_object( $current_object->post_type ) ) 459 459 && current_user_can( $post_type_object->cap->edit_post, $current_object->ID ) 460 460 && $post_type_object->show_ui && $post_type_object->show_in_admin_bar )