diff --git src/wp-admin/network/site-new.php src/wp-admin/network/site-new.php
index 5876037..1965e99 100644
|
|
if ( isset($_REQUEST['action']) && 'add-site' == $_REQUEST['action'] ) { |
47 | 47 | // If not a subdomain install, make sure the domain isn't a reserved word |
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 ) ) ); |
53 | 53 | } |
diff --git src/wp-includes/ms-functions.php src/wp-includes/ms-functions.php
index 464d83e..da118ef 100644
|
|
function wpmu_validate_blog_signup( $blogname, $blog_title, $user = '' ) { |
622 | 622 | * |
623 | 623 | * @param array $subdirectory_reserved_names Array of reserved names. |
624 | 624 | */ |
625 | | apply_filters( 'subdirectory_reserved_names', array( 'page', 'comments', 'blog', 'files', 'feed', 'wp-admin', 'wp-content', 'wp-includes' ) ) |
| 625 | apply_filters( 'subdirectory_reserved_names', array( 'page', 'comments', 'blog', 'files', 'feed', 'wp-admin', 'wp-content', 'wp-includes', 'wp-json' ) ) |
626 | 626 | ); |
627 | 627 | } |
628 | 628 | |