Changeset 21957 for trunk/wp-includes/admin-bar.php
- Timestamp:
- 09/23/2012 06:39:03 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/admin-bar.php
r21948 r21957 430 430 && ( $post_type_object = get_post_type_object( $post->post_type ) ) 431 431 && current_user_can( $post_type_object->cap->read_post, $post->ID ) 432 && ( $post_type_object->public ) ) 432 && ( $post_type_object->public ) 433 && ( $post_type_object->show_in_admin_bar ) ) 433 434 { 434 435 $wp_admin_bar->add_menu( array( … … 457 458 && ( $post_type_object = get_post_type_object( $current_object->post_type ) ) 458 459 && current_user_can( $post_type_object->cap->edit_post, $current_object->ID ) 459 && ( $post_type_object->show_ui || 'attachment' == $current_object->post_type ))460 && $post_type_object->show_ui && $post_type_object->show_in_admin_bar ) 460 461 { 461 462 $wp_admin_bar->add_menu( array(
Note: See TracChangeset
for help on using the changeset viewer.