Show warning in network.php if using a custom wp-content directory. fixes #11742.
git-svn-id: https://develop.svn.wordpress.org/trunk@14825 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ec0823ce3e
commit
d49e62fa35
@ -146,6 +146,9 @@ function network_step1( $errors = false ) {
|
||||
$error_codes = $errors->get_error_codes();
|
||||
}
|
||||
|
||||
if ( WP_CONTENT_DIR != ABSPATH . 'wp-content' )
|
||||
echo '<div class="error"><p><strong>' . __('Warning!') . '</strong> ' . __( 'Networks may not be fully compatible with custom wp-content directories.' ) . '</p></div>';
|
||||
|
||||
$site_name = ( ! empty( $_POST['sitename'] ) && ! in_array( 'empty_sitename', $error_codes ) ) ? $_POST['sitename'] : sprintf( _x('%s Sites', 'Default network name' ), get_option( 'blogname' ) );
|
||||
$admin_email = ( ! empty( $_POST['email'] ) && ! in_array( 'invalid_email', $error_codes ) ) ? $_POST['email'] : get_option( 'admin_email' );
|
||||
?>
|
||||
@ -287,7 +290,11 @@ function network_step2( $errors = false ) {
|
||||
}
|
||||
?>
|
||||
<ol>
|
||||
<li><p><?php printf( __( 'Create a <code>blogs.dir</code> directory in <code>%s</code>. This directory is used to stored uploaded media for your additional sites and must be writeable by the web server.' ), WP_CONTENT_DIR ); ?></p></li>
|
||||
<li><p><?php
|
||||
printf( __( 'Create a <code>blogs.dir</code> directory in <code>%s</code>. This directory is used to stored uploaded media for your additional sites and must be writeable by the web server.' ), WP_CONTENT_DIR );
|
||||
if ( WP_CONTENT_DIR != ABSPATH . 'wp-content' )
|
||||
echo ' <strong>' . __('Warning:') . ' ' . __( 'Networks may not be fully compatible with custom wp-content directories.' ) . '</strong';
|
||||
?></p></li>
|
||||
<li><p><?php printf( __( '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>:' ), ABSPATH ); ?></p>
|
||||
<textarea class="code" readonly="readonly" cols="100" rows="7">
|
||||
define( 'MULTISITE', true );
|
||||
|
Loading…
Reference in New Issue
Block a user