diff --git a/wp-admin/admin-footer.php b/wp-admin/admin-footer.php index a43a4e459b..05904ee82c 100644 --- a/wp-admin/admin-footer.php +++ b/wp-admin/admin-footer.php @@ -29,7 +29,7 @@ echo apply_filters( 'admin_footer_text', '
', admin_url( 'plugins.php' ) ); + include( './admin-footer.php' ); + die(); } - echo ""; -} -/** - * Prints .htaccess component of step 2 for network settings. - * - * @since 3.0.0 - */ -function step2_htaccess() { - global $base; - - // remove ending slash from $base and $url - $htaccess = ''; - if ( substr( $base, -1 ) == '/' ) - $base = substr( $base, 0, -1 ); - - $htaccess_sample = ABSPATH . 'wp-admin/includes/htaccess.ms'; - if ( ! file_exists( $htaccess_sample ) ) - wp_die( sprintf( __( 'Sorry, I need a %s to work from. Please re-upload this file to your WordPress installation.' ), $htaccess_sample ) ); - - $htaccess_file = file( $htaccess_sample ); - $fp = @fopen( $htaccess_sample, "r" ); - if ( $fp ) { - while ( ! feof( $fp ) ) { - $htaccess .= fgets( $fp, 4096 ); - } - fclose( $fp ); - $htaccess_file = str_replace( "BASE", $base, $htaccess ); - } else { - wp_die( sprintf( __( 'Sorry, I need to be able to read %s. Please check the permissions on this file.' ), $htaccess_sample ) ); - } -?> -%s.htaccess with the following:' ), ABSPATH ); ?>
- -mod_rewrite
module is disabled ask your administrator to enable that module, or look at the Apache documentation or elsewhere for help setting it up.' ) . '';
-
- if ( function_exists( 'apache_get_modules' ) ) {
- $modules = apache_get_modules();
- if ( ! in_array( 'mod_rewrite', $modules ) )
- echo '' . __( 'Warning! It looks like mod_rewrite is not installed.' ) . '
' . $mod_rewrite_msg; - else - $rewrite_enabled = true; - } else { - echo '' . __( 'Please make sure mod_rewrite
is installed as it will be activated at the end of this install.' ) . '
' . __('You cannot install a network of sites with your server address.' ) . '
'; + echo '' . __('You cannot use an IP address such as 127.0.0.1
or a single-word hostname like localhost
.' ) . '
' . __('Consider using localhost.localdomain
.') . '
mod_rewrite
module is installed as it will be used at the end of this install.' ) . '';
+ else
+ echo '' . __( 'Warning! It looks like Apache mod_rewrite
module is not installed.' ) . '
' . __( 'If mod_rewrite
is disabled ask your administrator to enable that module, or look at the Apache documentation or elsewhere for help setting it up.' ) . '
-
+
You cannot change this later.' ); ?>
+ +Note It looks like mod_rewrite
is not installed.' ); ?>
-
-
-
+ | blog1.example.com and blog2.example.com '); ?> |
+
---|---|
+ | example.com/blog1 and example.com/blog2 '); ?> |
+
%2$s
but any links will not have the "www" prefix.' ), $nowww, $hostname ); ?>%1$s before enabling the network feature. It will still be possible to visit your site using the "www" prefix with an address like %2$s
but any links will not have the "www" prefix.' ), substr( $hostname, 4 ), $hostname ); ?>
- - %s.' ), $hostname ); ?> + %s.' ), $hostname ); ?> - - localhost as your server address.' ); ?> - |
+ |
-
- + %s.' ), $hostname ); ?> + |
+ |
---|---|---|
+ |
+ ' />
+ |
|
+ |
-
+ ' />
|
' />
- - ' /> + - -deactivate your plugins before enabling WordPress Sites. Once WordPress Sites are enabled, you may reactivate your plugins.' ), admin_url( 'plugins.php' ) ); ?>
-get_var( "SHOW TABLES LIKE '$wpdb->site'" ) == $wpdb->site ) - return $wpdb->get_var( "SELECT domain FROM $wpdb->site ORDER BY id ASC LIMIT 1" ); - - return false; -} - -/** - * Prints step 2 for network settings. - * - * @since 3.0.0 - */ -function step2() { -?> - +Note: We recommend you make a backup copy of your existing wp-config.php
and .htaccess
files.' ); ?>
%s
to work from. Please re-upload this file to your WordPress installation.' ), $config_sample ) );
@@ -341,57 +237,58 @@ function step2_config() {
+ %s.htaccess with the following:' ), ABSPATH ); ?>
+ +