WordPress.org

Make WordPress Core

Ticket #16909: 16909.2.patch

File 16909.2.patch, 841 bytes (added by hakre, 9 years ago)

those two

  • wp-admin/network/edit.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    1414        wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    1616if ( empty( $_GET['action'] ) ) {
    17         wp_redirect( admin_url( 'index.php' ) );
     17        wp_redirect( self_admin_url( 'index.php' ) );
    1818        exit;
    1919}
    2020
  • wp-admin/user/admin.php

     
    1212require_once( dirname(dirname(__FILE__)) . '/admin.php');
    1313
    1414if ( ! is_multisite() ) {
    15         wp_redirect( admin_url() );
     15        wp_redirect( self_admin_url() );
    1616        exit;
    1717}
    1818