Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-edit.php

    r14928 r15179  
    168168
    169169        if ( is_subdomain_install() ) {
    170             $newdomain = $domain . '.' . $current_site->domain;
     170            $newdomain = $domain . '.' . preg_replace( '|^www\.|', '', $current_site->domain );
    171171            $path = $base;
    172172        } else {
     
    443443            $themes = get_themes();
    444444            reset( $themes );
     445            $allowed_themes = array();
    445446            foreach ( (array) $themes as $key => $theme ) {
    446447                if ( $_POST['theme'][ esc_html( $theme['Stylesheet'] ) ] == 'enabled' )
     
    468469
    469470                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    470                 <?php wp_admin_css( 'install', true ); ?>
     471                <?php
     472                wp_admin_css( 'install', true );
     473                wp_admin_css( 'ie', true );
     474                ?>
    471475            </head>
    472             <body id="error-page">
     476            <body>
    473477                <h1 id="logo"><img alt="WordPress" src="<?php echo esc_attr( admin_url( 'images/wordpress-logo.png' ) ); ?>" /></h1>
    474478                <form action="ms-edit.php?action=<?php echo esc_attr( $_GET['action2'] ) ?>" method="post">
     
    569573            wp_die( __( 'You do not have permission to access this page.' ) );
    570574
    571         if ( is_array( $_POST['blog'] ) && ! empty( $_POST['blog'] ) ) {
     575        if ( ! empty( $_POST['blog'] ) && is_array( $_POST['blog'] ) ) {
    572576            foreach ( $_POST['blog'] as $id => $users ) {
    573577                foreach ( $users as $blogid => $user_id ) {
Note: See TracChangeset for help on using the changeset viewer.