WordPress.org

Make WordPress Core

Ticket #22671: miqro-admin-bar.patch

File miqro-admin-bar.patch, 529 bytes (added by miqrogroove, 17 months ago)

Removes the broken link in the admin bar.

  • wp-includes/admin-bar.php

     
    428428 
    429429                if ( 'post' == $current_screen->base 
    430430                        && 'add' != $current_screen->action 
     431                        && 'auto-draft' != get_post_status( $post ) 
    431432                        && ( $post_type_object = get_post_type_object( $post->post_type ) ) 
    432433                        && current_user_can( $post_type_object->cap->read_post, $post->ID ) 
    433434                        && ( $post_type_object->public )