Make WordPress Core

Ticket #34988: adminbar.diff

File adminbar.diff, 534 bytes (added by swissspidy, 9 years ago)
  • src/wp-includes/admin-bar.php

    diff --git src/wp-includes/admin-bar.php src/wp-includes/admin-bar.php
    index e31b87b..cec57d9 100644
    function wp_admin_bar_edit_menu( $wp_admin_bar ) { 
    573573                                        'href' => get_permalink( $post->ID )
    574574                                ) );
    575575                        }
    576                 } elseif ( 'edit-tags' == $current_screen->base
     576                } elseif ( 'term' == $current_screen->base
    577577                        && isset( $tag ) && is_object( $tag ) && ! is_wp_error( $tag )
    578578                        && ( $tax = get_taxonomy( $tag->taxonomy ) )
    579579                        && $tax->public )