Changeset 41289 for trunk/src/wp-admin/includes/network.php
- Timestamp:
- 08/22/2017 11:51:11 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/network.php
r38323 r41289 28 28 29 29 /** 30 * Allow subdomain install 30 * Allow subdomain installation 31 31 * 32 32 * @since 3.0.0 33 * @return bool Whether subdomain install is allowed33 * @return bool Whether subdomain installation is allowed 34 34 */ 35 35 function allow_subdomain_install() { … … 42 42 43 43 /** 44 * Allow subdirectory install .44 * Allow subdirectory installation. 45 45 * 46 46 * @since 3.0.0 … … 48 48 * @global wpdb $wpdb WordPress database abstraction object. 49 49 * 50 * @return bool Whether subdirectory install is allowed50 * @return bool Whether subdirectory installation is allowed 51 51 */ 52 52 function allow_subdirectory_install() { 53 53 global $wpdb; 54 54 /** 55 * Filters whether to enable the subdirectory install feature in Multisite.55 * Filters whether to enable the subdirectory installation feature in Multisite. 56 56 * 57 57 * @since 3.0.0 58 58 * 59 * @param bool $allow Whether to enable the subdirectory install feature in Multisite. Default is false.59 * @param bool $allow Whether to enable the subdirectory installation feature in Multisite. Default is false. 60 60 */ 61 61 if ( apply_filters( 'allow_subdirectory_install', false ) ) … … 258 258 <?php if ( 'localhost' == $hostname ) : ?> 259 259 <tr> 260 <th scope="row"><?php esc_html_e( 'Sub-directory Install ' ); ?></th>260 <th scope="row"><?php esc_html_e( 'Sub-directory Installation' ); ?></th> 261 261 <td><?php 262 262 printf( … … 268 268 // Uh oh: 269 269 if ( !allow_subdirectory_install() ) 270 echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';270 echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory installation will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>'; 271 271 ?></td> 272 272 </tr> 273 273 <?php elseif ( !allow_subdomain_install() ) : ?> 274 274 <tr> 275 <th scope="row"><?php esc_html_e( 'Sub-directory Install ' ); ?></th>275 <th scope="row"><?php esc_html_e( 'Sub-directory Installation' ); ?></th> 276 276 <td><?php 277 _e( 'Because your install is in a directory, the sites in your WordPress network must use sub-directories.' );277 _e( 'Because your installation is in a directory, the sites in your WordPress network must use sub-directories.' ); 278 278 // Uh oh: 279 279 if ( !allow_subdirectory_install() ) 280 echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';280 echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory installation will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>'; 281 281 ?></td> 282 282 </tr> 283 283 <?php elseif ( !allow_subdirectory_install() ) : ?> 284 284 <tr> 285 <th scope="row"><?php esc_html_e( 'Sub-domain Install ' ); ?></th>286 <td><?php _e( 'Because your install is not new, the sites in your WordPress network must use sub-domains.' );287 echo ' <strong>' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';285 <th scope="row"><?php esc_html_e( 'Sub-domain Installation' ); ?></th> 286 <td><?php _e( 'Because your installation is not new, the sites in your WordPress network must use sub-domains.' ); 287 echo ' <strong>' . __( 'The main site in a sub-directory installation will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>'; 288 288 ?></td> 289 289 </tr>
Note: See TracChangeset
for help on using the changeset viewer.