equal
deleted
inserted
replaced
105 * |
105 * |
106 * @since 3.0.0 |
106 * @since 3.0.0 |
107 * |
107 * |
108 * @global bool $is_apache |
108 * @global bool $is_apache |
109 * |
109 * |
110 * @param WP_Error $errors |
110 * @param false|WP_Error $errors Optional. Error object. Default false. |
111 */ |
111 */ |
112 function network_step1( $errors = false ) { |
112 function network_step1( $errors = false ) { |
113 global $is_apache; |
113 global $is_apache; |
114 |
114 |
115 if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) { |
115 if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) { |
143 echo '<p>' . sprintf( |
143 echo '<p>' . sprintf( |
144 /* translators: %s: Port number. */ |
144 /* translators: %s: Port number. */ |
145 __( 'You cannot use port numbers such as %s.' ), |
145 __( 'You cannot use port numbers such as %s.' ), |
146 '<code>' . $has_ports . '</code>' |
146 '<code>' . $has_ports . '</code>' |
147 ) . '</p>'; |
147 ) . '</p>'; |
148 echo '<a href="' . esc_url( admin_url() ) . '">' . __( 'Return to Dashboard' ) . '</a>'; |
148 echo '<a href="' . esc_url( admin_url() ) . '">' . __( 'Go to Dashboard' ) . '</a>'; |
149 echo '</div>'; |
149 echo '</div>'; |
150 require_once ABSPATH . 'wp-admin/admin-footer.php'; |
150 require_once ABSPATH . 'wp-admin/admin-footer.php'; |
151 die(); |
151 die(); |
152 } |
152 } |
153 |
153 |
382 * @since 3.0.0 |
382 * @since 3.0.0 |
383 * |
383 * |
384 * @global wpdb $wpdb WordPress database abstraction object. |
384 * @global wpdb $wpdb WordPress database abstraction object. |
385 * @global bool $is_nginx Whether the server software is Nginx or something else. |
385 * @global bool $is_nginx Whether the server software is Nginx or something else. |
386 * |
386 * |
387 * @param WP_Error $errors |
387 * @param false|WP_Error $errors Optional. Error object. Default false. |
388 */ |
388 */ |
389 function network_step2( $errors = false ) { |
389 function network_step2( $errors = false ) { |
390 global $wpdb, $is_nginx; |
390 global $wpdb, $is_nginx; |
391 |
391 |
392 $hostname = get_clean_basedomain(); |
392 $hostname = get_clean_basedomain(); |
485 '<code>/* ' . __( 'That’s all, stop editing! Happy publishing.' ) . ' */</code>' |
485 '<code>/* ' . __( 'That’s all, stop editing! Happy publishing.' ) . ' */</code>' |
486 ); |
486 ); |
487 ?> |
487 ?> |
488 </p> |
488 </p> |
489 <textarea class="code" readonly="readonly" cols="100" rows="7"> |
489 <textarea class="code" readonly="readonly" cols="100" rows="7"> |
490 define('MULTISITE', true); |
490 define( 'MULTISITE', true ); |
491 define('SUBDOMAIN_INSTALL', <?php echo $subdomain_install ? 'true' : 'false'; ?>); |
491 define( 'SUBDOMAIN_INSTALL', <?php echo $subdomain_install ? 'true' : 'false'; ?> ); |
492 define('DOMAIN_CURRENT_SITE', '<?php echo $hostname; ?>'); |
492 define( 'DOMAIN_CURRENT_SITE', '<?php echo $hostname; ?>' ); |
493 define('PATH_CURRENT_SITE', '<?php echo $base; ?>'); |
493 define( 'PATH_CURRENT_SITE', '<?php echo $base; ?>' ); |
494 define('SITE_ID_CURRENT_SITE', 1); |
494 define( 'SITE_ID_CURRENT_SITE', 1 ); |
495 define('BLOG_ID_CURRENT_SITE', 1); |
495 define( 'BLOG_ID_CURRENT_SITE', 1 ); |
496 </textarea> |
496 </textarea> |
497 <?php |
497 <?php |
498 $keys_salts = array( |
498 $keys_salts = array( |
499 'AUTH_KEY' => '', |
499 'AUTH_KEY' => '', |
500 'SECURE_AUTH_KEY' => '', |
500 'SECURE_AUTH_KEY' => '', |
638 $ms_files_rewriting .= $subdir_match . "files/(.+) {$rewrite_base}" . WPINC . "/ms-files.php?file={$subdir_replacement_12} [L]" . "\n"; |
638 $ms_files_rewriting .= $subdir_match . "files/(.+) {$rewrite_base}" . WPINC . "/ms-files.php?file={$subdir_replacement_12} [L]" . "\n"; |
639 } |
639 } |
640 |
640 |
641 $htaccess_file = <<<EOF |
641 $htaccess_file = <<<EOF |
642 RewriteEngine On |
642 RewriteEngine On |
|
643 RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] |
643 RewriteBase {$base} |
644 RewriteBase {$base} |
644 RewriteRule ^index\.php$ - [L] |
645 RewriteRule ^index\.php$ - [L] |
645 {$ms_files_rewriting} |
646 {$ms_files_rewriting} |
646 # add a trailing slash to /wp-admin |
647 # add a trailing slash to /wp-admin |
647 RewriteRule ^{$subdir_match}wp-admin$ {$subdir_replacement_01}wp-admin/ [R=301,L] |
648 RewriteRule ^{$subdir_match}wp-admin$ {$subdir_replacement_01}wp-admin/ [R=301,L] |