Make WordPress Core

Ticket #40683: 40683.patch

File 40683.patch, 501 bytes (added by Girishpanchal, 7 years ago)
  • src/wp-includes/admin-bar.php

     
    812812                ) );
    813813        }
    814814
     815  if ( current_user_can( 'install_plugins' )  ) {
     816    $wp_admin_bar->add_menu( array(
     817      'parent' => 'appearance',
     818      'id'     => 'plugins',
     819      'title'  => __( 'Plugins' ),
     820      'href'   => admin_url( 'plugins.php' ),
     821    ) );
     822  }
     823
    815824}
    816825
    817826/**