WordPress.org

Make WordPress Core

Changeset 14825


Ignore:
Timestamp:
05/23/2010 10:19:09 PM (11 years ago)
Author:
nacin
Message:

Show warning in network.php if using a custom wp-content directory. fixes #11742.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network.php

    r14719 r14825  
    146146        $error_codes = $errors->get_error_codes();
    147147    }
     148
     149    if ( WP_CONTENT_DIR != ABSPATH . 'wp-content' )
     150        echo '<div class="error"><p><strong>' . __('Warning!') . '</strong> ' . __( 'Networks may not be fully compatible with custom wp-content directories.' ) . '</p></div>';
    148151
    149152    $site_name = ( ! empty( $_POST['sitename'] ) && ! in_array( 'empty_sitename', $error_codes ) ) ? $_POST['sitename'] : sprintf( _x('%s Sites', 'Default network name' ), get_option( 'blogname' ) );
     
    288291?>
    289292        <ol>
    290             <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>
     293            <li><p><?php
     294                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 );
     295                if ( WP_CONTENT_DIR != ABSPATH . 'wp-content' )
     296                    echo ' <strong>' . __('Warning:') . ' ' . __( 'Networks may not be fully compatible with custom wp-content directories.' ) . '</strong';
     297            ?></p></li>
    291298            <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&#8217;s all, stop editing! Happy blogging. */</code>:' ), ABSPATH ); ?></p>
    292299                <textarea class="code" readonly="readonly" cols="100" rows="7">
Note: See TracChangeset for help on using the changeset viewer.