wp/wp-admin/includes/network.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
   177 	} else {
   177 	} else {
   178 		$admin_email = get_option( 'admin_email' );
   178 		$admin_email = get_option( 'admin_email' );
   179 	}
   179 	}
   180 	?>
   180 	?>
   181 	<p><?php _e( 'Welcome to the Network installation process!' ); ?></p>
   181 	<p><?php _e( 'Welcome to the Network installation process!' ); ?></p>
   182 	<p><?php _e( 'Fill in the information below and you&#8217;ll be on your way to creating a network of WordPress sites. We will create configuration files in the next step.' ); ?></p>
   182 	<p><?php _e( 'Fill in the information below and you&#8217;ll be on your way to creating a network of WordPress sites. Configuration files will be created in the next step.' ); ?></p>
   183 	<?php
   183 	<?php
   184 
   184 
   185 	if ( isset( $_POST['subdomain_install'] ) ) {
   185 	if ( isset( $_POST['subdomain_install'] ) ) {
   186 		$subdomain_install = (bool) $_POST['subdomain_install'];
   186 		$subdomain_install = (bool) $_POST['subdomain_install'];
   187 	} elseif ( apache_mod_loaded( 'mod_rewrite' ) ) { // Assume nothing.
   187 	} elseif ( apache_mod_loaded( 'mod_rewrite' ) ) { // Assume nothing.
   269 		<h3><?php esc_html_e( 'Server Address' ); ?></h3>
   269 		<h3><?php esc_html_e( 'Server Address' ); ?></h3>
   270 		<p>
   270 		<p>
   271 		<?php
   271 		<?php
   272 		printf(
   272 		printf(
   273 			/* translators: 1: Site URL, 2: Host name, 3: www. */
   273 			/* translators: 1: Site URL, 2: Host name, 3: www. */
   274 			__( 'We recommend you change your site domain 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.' ),
   274 			__( 'You should consider changing your site domain 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.' ),
   275 			'<code>' . substr( $hostname, 4 ) . '</code>',
   275 			'<code>' . substr( $hostname, 4 ) . '</code>',
   276 			'<code>' . $hostname . '</code>',
   276 			'<code>' . $hostname . '</code>',
   277 			'<code>www</code>'
   277 			'<code>www</code>'
   278 		);
   278 		);
   279 		?>
   279 		?>
   442 		<?php
   442 		<?php
   443 		if ( file_exists( $home_path . '.htaccess' ) ) {
   443 		if ( file_exists( $home_path . '.htaccess' ) ) {
   444 			echo '<strong>' . __( 'Caution:' ) . '</strong> ';
   444 			echo '<strong>' . __( 'Caution:' ) . '</strong> ';
   445 			printf(
   445 			printf(
   446 				/* translators: 1: wp-config.php, 2: .htaccess */
   446 				/* translators: 1: wp-config.php, 2: .htaccess */
   447 				__( 'We recommend you back up your existing %1$s and %2$s files.' ),
   447 				__( 'You should back up your existing %1$s and %2$s files.' ),
   448 				'<code>wp-config.php</code>',
   448 				'<code>wp-config.php</code>',
   449 				'<code>.htaccess</code>'
   449 				'<code>.htaccess</code>'
   450 			);
   450 			);
   451 		} elseif ( file_exists( $home_path . 'web.config' ) ) {
   451 		} elseif ( file_exists( $home_path . 'web.config' ) ) {
   452 			echo '<strong>' . __( 'Caution:' ) . '</strong> ';
   452 			echo '<strong>' . __( 'Caution:' ) . '</strong> ';
   453 			printf(
   453 			printf(
   454 				/* translators: 1: wp-config.php, 2: web.config */
   454 				/* translators: 1: wp-config.php, 2: web.config */
   455 				__( 'We recommend you back up your existing %1$s and %2$s files.' ),
   455 				__( 'You should back up your existing %1$s and %2$s files.' ),
   456 				'<code>wp-config.php</code>',
   456 				'<code>wp-config.php</code>',
   457 				'<code>web.config</code>'
   457 				'<code>web.config</code>'
   458 			);
   458 			);
   459 		} else {
   459 		} else {
   460 			echo '<strong>' . __( 'Caution:' ) . '</strong> ';
   460 			echo '<strong>' . __( 'Caution:' ) . '</strong> ';
   461 			printf(
   461 			printf(
   462 				/* translators: %s: wp-config.php */
   462 				/* translators: %s: wp-config.php */
   463 				__( 'We recommend you back up your existing %s file.' ),
   463 				__( 'You should back up your existing %s file.' ),
   464 				'<code>wp-config.php</code>'
   464 				'<code>wp-config.php</code>'
   465 			);
   465 			);
   466 		}
   466 		}
   467 		?>
   467 		?>
   468 		</p></div>
   468 		</p></div>