Ticket #37447: 37447.2.diff
File 37447.2.diff, 13.4 KB (added by , 8 years ago) |
---|
-
src/wp-admin/network/about.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 require( ABSPATH . 'wp-admin/about.php' ); -
src/wp-admin/network/admin.php
12 12 /** Load WordPress Administration Bootstrap */ 13 13 require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' ); 14 14 15 if ( ! is_multisite() ) 15 /* Do not remove this check. */ 16 if ( ! is_multisite() ) { 16 17 wp_die( __( 'Multisite support is not enabled.' ) ); 18 } 17 19 18 20 $redirect_network_admin_request = 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path ); 19 21 -
src/wp-admin/network/credits.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 require( ABSPATH . 'wp-admin/credits.php' ); -
src/wp-admin/network/edit.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 if ( empty( $_GET['action'] ) ) { 17 14 wp_redirect( network_admin_url() ); 18 15 exit; -
src/wp-admin/network/freedoms.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 require( ABSPATH . 'wp-admin/freedoms.php' ); -
src/wp-admin/network/index.php
13 13 /** Load WordPress dashboard API */ 14 14 require_once( ABSPATH . 'wp-admin/includes/dashboard.php' ); 15 15 16 if ( !is_multisite() )17 wp_die( __( 'Multisite support is not enabled.' ) );18 19 16 if ( ! current_user_can( 'manage_network' ) ) 20 17 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 21 18 -
src/wp-admin/network/plugin-editor.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 require( ABSPATH . 'wp-admin/plugin-editor.php' ); -
src/wp-admin/network/plugin-install.php
13 13 /** Load WordPress Administration Bootstrap */ 14 14 require_once( dirname( __FILE__ ) . '/admin.php' ); 15 15 16 if ( ! is_multisite() )17 wp_die( __( 'Multisite support is not enabled.' ) );18 19 16 require( ABSPATH . 'wp-admin/plugin-install.php' ); -
src/wp-admin/network/plugins.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 require( ABSPATH . 'wp-admin/plugins.php' ); -
src/wp-admin/network/profile.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 require( ABSPATH . 'wp-admin/profile.php' ); -
src/wp-admin/network/settings.php
13 13 /** WordPress Translation Install API */ 14 14 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); 15 15 16 if ( ! is_multisite() )17 wp_die( __( 'Multisite support is not enabled.' ) );18 19 16 if ( ! current_user_can( 'manage_network_options' ) ) 20 17 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 21 18 -
src/wp-admin/network/setup.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 require( ABSPATH . 'wp-admin/network.php' ); -
src/wp-admin/network/site-info.php
9 9 10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 13 if ( ! is_multisite() ) {14 wp_die( __( 'Multisite support is not enabled.' ) );15 12 } 16 13 17 14 if ( ! current_user_can( 'manage_sites' ) ) { -
src/wp-admin/network/site-new.php
13 13 /** WordPress Translation Install API */ 14 14 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); 15 15 16 if ( ! is_multisite() )17 wp_die( __( 'Multisite support is not enabled.' ) );18 19 16 if ( ! current_user_can( 'manage_sites' ) ) 20 17 wp_die( __( 'Sorry, you are not allowed to add sites to this network.' ) ); 21 18 -
src/wp-admin/network/site-settings.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 if ( ! current_user_can( 'manage_sites' ) ) 17 14 wp_die( __( 'Sorry, you are not allowed to edit this site.' ) ); 18 15 -
src/wp-admin/network/site-themes.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 if ( ! current_user_can( 'manage_sites' ) ) 17 14 wp_die( __( 'Sorry, you are not allowed to manage themes for this site.' ) ); 18 15 -
src/wp-admin/network/site-users.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 if ( ! current_user_can('manage_sites') ) 17 14 wp_die(__('Sorry, you are not allowed to edit this site.')); 18 15 -
src/wp-admin/network/sites.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 if ( ! current_user_can( 'manage_sites' ) ) 17 14 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 18 15 -
src/wp-admin/network/theme-editor.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 require( ABSPATH . 'wp-admin/theme-editor.php' ); -
src/wp-admin/network/theme-install.php
13 13 /** Load WordPress Administration Bootstrap */ 14 14 require_once( dirname( __FILE__ ) . '/admin.php' ); 15 15 16 if ( ! is_multisite() )17 wp_die( __( 'Multisite support is not enabled.' ) );18 19 16 require( ABSPATH . 'wp-admin/theme-install.php' ); -
src/wp-admin/network/themes.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 if ( !current_user_can('manage_network_themes') ) 17 14 wp_die( __( 'Sorry, you are not allowed to manage network themes.' ) ); 18 15 -
src/wp-admin/network/update-core.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 require( ABSPATH . 'wp-admin/update-core.php' ); -
src/wp-admin/network/update.php
13 13 /** Load WordPress Administration Bootstrap */ 14 14 require_once( dirname( __FILE__ ) . '/admin.php' ); 15 15 16 if ( ! is_multisite() )17 wp_die( __( 'Multisite support is not enabled.' ) );18 19 16 require( ABSPATH . 'wp-admin/update.php' ); -
src/wp-admin/network/upgrade.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 require_once( ABSPATH . WPINC . '/http.php' ); 17 14 18 15 $title = __( 'Upgrade Network' ); -
src/wp-admin/network/user-edit.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 require( ABSPATH . 'wp-admin/user-edit.php' ); -
src/wp-admin/network/user-new.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 if ( ! current_user_can('create_users') ) 17 14 wp_die(__('Sorry, you are not allowed to add users to this network.')); 18 15 -
src/wp-admin/network/users.php
10 10 /** Load WordPress Administration Bootstrap */ 11 11 require_once( dirname( __FILE__ ) . '/admin.php' ); 12 12 13 if ( ! is_multisite() )14 wp_die( __( 'Multisite support is not enabled.' ) );15 16 13 if ( ! current_user_can( 'manage_network_users' ) ) 17 14 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 18 15