mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Link to network/update-core when running multisite. Remove theme/plugin editors from blog menu when running multisite. Redirect to network/* when accessing theme/plugin-install/editor. props ocean90, see #15525.
git-svn-id: https://develop.svn.wordpress.org/trunk@16747 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -12,6 +12,11 @@ if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'plugin-informat
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once('./admin.php');
|
||||
|
||||
if ( is_multisite() && ! is_network_admin() ) {
|
||||
wp_redirect( network_admin_url( 'plugin-install.php' ) );
|
||||
exit();
|
||||
}
|
||||
|
||||
$wp_list_table = get_list_table('WP_Plugin_Install_List_Table');
|
||||
$wp_list_table->check_permissions();
|
||||
$wp_list_table->prepare_items();
|
||||
|
||||
Reference in New Issue
Block a user