Make WordPress Core

Ticket #31183: 31183.3.diff

File 31183.3.diff, 550 bytes (added by jeremyfelt, 7 years ago)
  • src/wp-admin/plugin-install.php

     
    1515 */
    1616require_once( dirname( __FILE__ ) . '/admin.php' );
    1717
    18 if ( ! current_user_can( 'install_plugins' ) ) {
     18if ( ! current_user_can( 'install_plugins' ) && ! ( isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) ) ) {
    1919        wp_die( __( 'Sorry, you are not allowed to install plugins on this site.' ) );
    2020}
    2121