Make WordPress Core

Ticket #37447: 37447.2.diff

File 37447.2.diff, 13.4 KB (added by flixos90, 8 years ago)
  • src/wp-admin/network/about.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613require( ABSPATH . 'wp-admin/about.php' );
  • src/wp-admin/network/admin.php

     
    1212/** Load WordPress Administration Bootstrap */
    1313require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' );
    1414
    15 if ( ! is_multisite() )
     15/* Do not remove this check. */
     16if ( ! is_multisite() ) {
    1617        wp_die( __( 'Multisite support is not enabled.' ) );
     18}
    1719
    1820$redirect_network_admin_request = 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path );
    1921
  • src/wp-admin/network/credits.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613require( ABSPATH . 'wp-admin/credits.php' );
  • src/wp-admin/network/edit.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613if ( empty( $_GET['action'] ) ) {
    1714        wp_redirect( network_admin_url() );
    1815        exit;
  • src/wp-admin/network/freedoms.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613require( ABSPATH . 'wp-admin/freedoms.php' );
  • src/wp-admin/network/index.php

     
    1313/** Load WordPress dashboard API */
    1414require_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
    1515
    16 if ( !is_multisite() )
    17         wp_die( __( 'Multisite support is not enabled.' ) );
    18 
    1916if ( ! current_user_can( 'manage_network' ) )
    2017        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    2118
  • src/wp-admin/network/plugin-editor.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613require( ABSPATH . 'wp-admin/plugin-editor.php' );
  • src/wp-admin/network/plugin-install.php

     
    1313/** Load WordPress Administration Bootstrap */
    1414require_once( dirname( __FILE__ ) . '/admin.php' );
    1515
    16 if ( ! is_multisite() )
    17         wp_die( __( 'Multisite support is not enabled.' ) );
    18 
    1916require( ABSPATH . 'wp-admin/plugin-install.php' );
  • src/wp-admin/network/plugins.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613require( ABSPATH . 'wp-admin/plugins.php' );
  • src/wp-admin/network/profile.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613require( ABSPATH . 'wp-admin/profile.php' );
  • src/wp-admin/network/settings.php

     
    1313/** WordPress Translation Install API */
    1414require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
    1515
    16 if ( ! is_multisite() )
    17         wp_die( __( 'Multisite support is not enabled.' ) );
    18 
    1916if ( ! current_user_can( 'manage_network_options' ) )
    2017        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    2118
  • src/wp-admin/network/setup.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613require( ABSPATH . 'wp-admin/network.php' );
  • src/wp-admin/network/site-info.php

     
    99
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    12 
    13 if ( ! is_multisite() ) {
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    1512}
    1613
    1714if ( ! current_user_can( 'manage_sites' ) ) {
  • src/wp-admin/network/site-new.php

     
    1313/** WordPress Translation Install API */
    1414require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
    1515
    16 if ( ! is_multisite() )
    17         wp_die( __( 'Multisite support is not enabled.' ) );
    18 
    1916if ( ! current_user_can( 'manage_sites' ) )
    2017        wp_die( __( 'Sorry, you are not allowed to add sites to this network.' ) );
    2118
  • src/wp-admin/network/site-settings.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613if ( ! current_user_can( 'manage_sites' ) )
    1714        wp_die( __( 'Sorry, you are not allowed to edit this site.' ) );
    1815
  • src/wp-admin/network/site-themes.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613if ( ! current_user_can( 'manage_sites' ) )
    1714        wp_die( __( 'Sorry, you are not allowed to manage themes for this site.' ) );
    1815
  • src/wp-admin/network/site-users.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613if ( ! current_user_can('manage_sites') )
    1714        wp_die(__('Sorry, you are not allowed to edit this site.'));
    1815
  • src/wp-admin/network/sites.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613if ( ! current_user_can( 'manage_sites' ) )
    1714        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    1815
  • src/wp-admin/network/theme-editor.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613require( ABSPATH . 'wp-admin/theme-editor.php' );
  • src/wp-admin/network/theme-install.php

     
    1313/** Load WordPress Administration Bootstrap */
    1414require_once( dirname( __FILE__ ) . '/admin.php' );
    1515
    16 if ( ! is_multisite() )
    17         wp_die( __( 'Multisite support is not enabled.' ) );
    18 
    1916require( ABSPATH . 'wp-admin/theme-install.php' );
  • src/wp-admin/network/themes.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613if ( !current_user_can('manage_network_themes') )
    1714        wp_die( __( 'Sorry, you are not allowed to manage network themes.' ) );
    1815
  • src/wp-admin/network/update-core.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613require( ABSPATH . 'wp-admin/update-core.php' );
  • src/wp-admin/network/update.php

     
    1313/** Load WordPress Administration Bootstrap */
    1414require_once( dirname( __FILE__ ) . '/admin.php' );
    1515
    16 if ( ! is_multisite() )
    17         wp_die( __( 'Multisite support is not enabled.' ) );
    18 
    1916require( ABSPATH . 'wp-admin/update.php' );
  • src/wp-admin/network/upgrade.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613require_once( ABSPATH . WPINC . '/http.php' );
    1714
    1815$title = __( 'Upgrade Network' );
  • src/wp-admin/network/user-edit.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613require( ABSPATH . 'wp-admin/user-edit.php' );
  • src/wp-admin/network/user-new.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613if ( ! current_user_can('create_users') )
    1714        wp_die(__('Sorry, you are not allowed to add users to this network.'));
    1815
  • src/wp-admin/network/users.php

     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( ! is_multisite() )
    14         wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    1613if ( ! current_user_can( 'manage_network_users' ) )
    1714        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    1815