You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo'<div class="error"><p><strong>' . __( 'ERROR:') . '</strong> ' . __( 'You cannot install a network of sites with your server address.' ) . '</p></div>';
123
-
echo'<p>' . sprintf( __( 'You cannot use port numbers such as <code>%s</code>.' ), $has_ports ) . '</p>';
123
+
echo'<p>' . sprintf( __( 'You cannot use port numbers such as %s.' ), '<code>' . $has_ports . '</code>' ) . '</p>';
<p><?phpprintf( __( 'We recommend you change your siteurl to <code>%1$s</code> before enabling the network feature. It will still be possible to visit your site using the <code>www</code> prefix with an address like <code>%2$s</code> but any links will not have the <code>www</code> prefix.' ), substr( $hostname, 4 ), $hostname ); ?></p>
200
+
<p><?phpprintf(
201
+
/* translators: 1: site url 2: host name 3. www */
202
+
__( 'We recommend you change your siteurl to %1$s before enabling the network feature. It will still be possible to visit your site using the %3$s prefix with an address like %2$s but any links will not have the %3$s prefix.' ),
printf( __( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> and <code>%s</code> files.' ), 'web.config' );
338
-
else
339
-
_e( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> file.' );
348
+
if ( file_exists( $home_path . '.htaccess' ) ) {
349
+
printf(
350
+
/* translators: 1: wp-config.php 2: .htaccess */
351
+
__( '<strong>Caution:</strong> We recommend you back up your existing %1$s and %2$s files.' ),
__( '<strong>Caution:</strong> We recommend you back up your existing %1$s and %2$s files.' ),
359
+
'<code>wp-config.php</code>',
360
+
'<code>web.config</code>'
361
+
);
362
+
} else {
363
+
printf(
364
+
/* translators: 1: wp-config.php */
365
+
__( '<strong>Caution:</strong> We recommend you back up your existing %s file.' ),
366
+
'<code>wp-config.php</code>'
367
+
);
368
+
}
340
369
?></p></div>
341
370
<?php
342
371
}
343
372
?>
344
373
<ol>
345
-
<li><p><?phpprintf( __( 'Add the following to your <code>wp-config.php</code> file in <code>%s</code> <strong>above</strong> the line reading <code>/* That’s all, stop editing! Happy blogging. */</code>:' ), $location_of_wp_config ); ?></p>
374
+
<li><p><?phpprintf(
375
+
/* translators: 1: wp-config.php 2: location of wp-config file */
376
+
__( 'Add the following to your %1$s file in %2$s <strong>above</strong> the line reading <code>/* That’s all, stop editing! Happy blogging. */</code>:' ),
0 commit comments