Ticket #31183: 31183.3.diff
File 31183.3.diff, 550 bytes (added by , 7 years ago) |
---|
-
src/wp-admin/plugin-install.php
15 15 */ 16 16 require_once( dirname( __FILE__ ) . '/admin.php' ); 17 17 18 if ( ! current_user_can( 'install_plugins' ) ) {18 if ( ! current_user_can( 'install_plugins' ) && ! ( isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) ) ) { 19 19 wp_die( __( 'Sorry, you are not allowed to install plugins on this site.' ) ); 20 20 } 21 21