Changeset 34375
- Timestamp:
- 09/22/2015 04:20:41 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/site-new.php
r34265 r34375 48 48 if ( ! is_subdomain_install() ) { 49 49 /** This filter is documented in wp-includes/ms-functions.php */ 50 $subdirectory_reserved_names = apply_filters( 'subdirectory_reserved_names', array( 'page', 'comments', 'blog', 'files', 'feed', 'wp-admin', 'wp-content', 'wp-includes' ) );50 $subdirectory_reserved_names = apply_filters( 'subdirectory_reserved_names', array( 'page', 'comments', 'blog', 'files', 'feed', 'wp-admin', 'wp-content', 'wp-includes', 'wp-json' ) ); 51 51 if ( in_array( $domain, $subdirectory_reserved_names ) ) 52 52 wp_die( sprintf( __('The following words are reserved for use by WordPress functions and cannot be used as blog names: <code>%s</code>' ), implode( '</code>, <code>', $subdirectory_reserved_names ) ) ); -
trunk/src/wp-includes/ms-functions.php
r34235 r34375 624 624 * @param array $subdirectory_reserved_names Array of reserved names. 625 625 */ 626 apply_filters( 'subdirectory_reserved_names', array( 'page', 'comments', 'blog', 'files', 'feed', 'wp-admin', 'wp-content', 'wp-includes' ) )626 apply_filters( 'subdirectory_reserved_names', array( 'page', 'comments', 'blog', 'files', 'feed', 'wp-admin', 'wp-content', 'wp-includes', 'wp-json' ) ) 627 627 ); 628 628 }
Note: See TracChangeset
for help on using the changeset viewer.