Changeset 46963
- Timestamp:
- 12/16/2019 12:35:26 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/network.php
r45932 r46963 35 35 function allow_subdomain_install() { 36 36 $domain = preg_replace( '|https?://([^/]+)|', '$1', get_option( 'home' ) ); 37 if ( parse_url( get_option( 'home' ), PHP_URL_PATH ) || 'localhost' == $domain || preg_match( '|^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$|', $domain ) ) {37 if ( parse_url( get_option( 'home' ), PHP_URL_PATH ) || 'localhost' === $domain || preg_match( '|^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$|', $domain ) ) { 38 38 return false; 39 39 } … … 257 257 endif; 258 258 259 if ( WP_CONTENT_DIR != ABSPATH . 'wp-content' && ( allow_subdirectory_install() || ! allow_subdomain_install() ) ) {259 if ( WP_CONTENT_DIR !== ABSPATH . 'wp-content' && ( allow_subdirectory_install() || ! allow_subdomain_install() ) ) { 260 260 echo '<div class="error inline"><p><strong>' . __( 'Warning:' ) . '</strong> ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '</p></div>'; 261 261 } … … 294 294 <h3><?php esc_html_e( 'Network Details' ); ?></h3> 295 295 <table class="form-table" role="presentation"> 296 <?php if ( 'localhost' == $hostname ) : ?>296 <?php if ( 'localhost' === $hostname ) : ?> 297 297 <tr> 298 298 <th scope="row"><?php esc_html_e( 'Sub-directory Installation' ); ?></th> … … 525 525 <p> 526 526 <?php 527 if ( 1 == $num_keys_salts ) {527 if ( 1 === $num_keys_salts ) { 528 528 printf( 529 529 /* translators: %s: wp-config.php */ … … 608 608 ); 609 609 echo '</p>'; 610 if ( ! $subdomain_install && WP_CONTENT_DIR != ABSPATH . 'wp-content' ) {610 if ( ! $subdomain_install && WP_CONTENT_DIR !== ABSPATH . 'wp-content' ) { 611 611 echo '<p><strong>' . __( 'Warning:' ) . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '</strong></p>'; 612 612 } … … 650 650 ); 651 651 echo '</p>'; 652 if ( ! $subdomain_install && WP_CONTENT_DIR != ABSPATH . 'wp-content' ) {652 if ( ! $subdomain_install && WP_CONTENT_DIR !== ABSPATH . 'wp-content' ) { 653 653 echo '<p><strong>' . __( 'Warning:' ) . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '</strong></p>'; 654 654 }
Note: See TracChangeset
for help on using the changeset viewer.