mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-23 06:44:31 +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:
@@ -9,6 +9,11 @@
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once('./admin.php');
|
||||
|
||||
if ( is_multisite() && ! is_network_admin() ) {
|
||||
wp_redirect( network_admin_url( 'theme-editor.php' ) );
|
||||
exit();
|
||||
}
|
||||
|
||||
if ( !current_user_can('edit_themes') )
|
||||
wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this site.').'</p>');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user