From dd6fe1ba3266a6ffb4b64898838257ba32ca01ee Mon Sep 17 00:00:00 2001
From: Scott Taylor ' . __( 'ERROR:') . ' ' . __( 'You cannot install a network of sites with your server address.' ) . ' ' . sprintf( __( 'You cannot use port numbers such as ' . sprintf( __( 'You cannot use port numbers such as %s.' ), ' %1$s` in translation strings in
`wp-admin/network` files.
Props ramiy.
Fixes #31840.
Built from https://develop.svn.wordpress.org/trunk@34292
git-svn-id: http://core.svn.wordpress.org/trunk@34256 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-admin/includes/network.php | 86 +++++++++++++++++++++++++++--------
wp-admin/network.php | 9 +++-
wp-includes/version.php | 2 +-
3 files changed, 76 insertions(+), 21 deletions(-)
diff --git a/wp-admin/includes/network.php b/wp-admin/includes/network.php
index 13004494f7..433e5f9f64 100644
--- a/wp-admin/includes/network.php
+++ b/wp-admin/includes/network.php
@@ -120,7 +120,7 @@ function network_step1( $errors = false ) {
$has_ports = strstr( $hostname, ':' );
if ( ( false !== $has_ports && ! in_array( $has_ports, array( ':80', ':443' ) ) ) ) {
echo ' before enabling the network feature. It will still be possible to visit your site using the %s.' ), $has_ports ) . '' . $has_ports . '' ) . 'www prefix with an address like %2$s but any links will not have the www prefix.' ), substr( $hostname, 4 ), $hostname ); ?>
' . substr( $hostname, 4 ) . '',
+ '' . $hostname . '',
+ 'www'
+ ); ?>
| - %s.' ), $hostname ); ?> + ' . $hostname . '' + ); ?> |
Caution: We recommend you back up your existing wp-config.php and %s files.' ), '.htaccess' );
- elseif ( file_exists( $home_path . 'web.config' ) )
- printf( __( 'Caution: We recommend you back up your existing wp-config.php and %s files.' ), 'web.config' );
- else
- _e( 'Caution: We recommend you back up your existing wp-config.php file.' );
+ if ( file_exists( $home_path . '.htaccess' ) ) {
+ printf(
+ /* translators: 1: wp-config.php 2: .htaccess */
+ __( 'Caution: We recommend you back up your existing %1$s and %2$s files.' ),
+ 'wp-config.php',
+ '.htaccess'
+ );
+ } elseif ( file_exists( $home_path . 'web.config' ) ) {
+ printf(
+ /* translators: 1: wp-config.php 2: web.config */
+ __( 'Caution: We recommend you back up your existing %1$s and %2$s files.' ),
+ 'wp-config.php',
+ 'web.config'
+ );
+ } else {
+ printf(
+ /* translators: 1: wp-config.php */
+ __( 'Caution: We recommend you back up your existing %s file.' ),
+ 'wp-config.php'
+ );
+ }
?>
wp-config.php file in %s above the line reading /* That’s all, stop editing! Happy blogging. */:' ), $location_of_wp_config ); ?>
above the line reading /* That’s all, stop editing! Happy blogging. */:' ),
+ 'wp-config.php',
+ '' . $location_of_wp_config . ''
+ ); ?>