Make WordPress Core

Ticket #40683: 40683.2.diff

File 40683.2.diff, 547 bytes (added by danieltj, 7 years ago)

Refreshed patch for 4.8.1

  • wp-includes/admin-bar.php

    diff --git wp-includes/admin-bar.php wp-includes/admin-bar.php
    index 7ff55fe..51fbd14 100644
    function wp_admin_bar_appearance_menu( $wp_admin_bar ) { 
    790790                ) );
    791791        }
    792792
     793        if ( current_user_can( 'activate_plugins' ) ) {
     794                $wp_admin_bar->add_menu( array(
     795                        'parent' => 'appearance',
     796                        'id'     => 'plugins',
     797                        'title'  => __( 'Plugins' ),
     798                        'href'   => admin_url( 'plugins.php' ),
     799                ) );
     800        }
     801
    793802        if ( ! current_user_can( 'edit_theme_options' ) ) {
    794803                return;
    795804        }