Make WordPress Core

Ticket #20504: admin-bar-patch.diff

File admin-bar-patch.diff, 585 bytes (added by griffinjt, 13 years ago)
  • wp-includes/admin-bar.php

     
    426426                        && 'add' != $current_screen->action
    427427                        && ( $post_type_object = get_post_type_object( $post->post_type ) )
    428428                        && current_user_can( $post_type_object->cap->read_post, $post->ID )
    429                         && ( $post_type_object->public ) )
     429                        && ( $post_type_object->public )
     430                        && ( $post_type_object->show_in_admin_bar ) )
    430431                {
    431432                        $wp_admin_bar->add_menu( array(
    432433                                'id' => 'view',