Multisite: in wpmu_validate_blog_signup(), pass embed to the array passed to subdirectory_reserved_names.

See #32522.


git-svn-id: https://develop.svn.wordpress.org/trunk@34853 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-10-06 04:04:24 +00:00
parent da7ddeaeab
commit a409a72e94
2 changed files with 3 additions and 2 deletions

View File

@ -561,12 +561,12 @@ function wpmu_validate_blog_signup( $blogname, $blog_title, $user = '' ) {
* Filter reserved site names on a sub-directory Multisite install. * Filter reserved site names on a sub-directory Multisite install.
* *
* @since 3.0.0 * @since 3.0.0
* @since 4.4.0 'wp-admin', 'wp-content', 'wp-includes', and 'wp-json' were added * @since 4.4.0 'wp-admin', 'wp-content', 'wp-includes', 'wp-json', and 'embed' were added
* to the reserved names list. * to the reserved names list.
* *
* @param array $subdirectory_reserved_names Array of reserved names. * @param array $subdirectory_reserved_names Array of reserved names.
*/ */
apply_filters( 'subdirectory_reserved_names', array( 'page', 'comments', 'blog', 'files', 'feed', 'wp-admin', 'wp-content', 'wp-includes', 'wp-json' ) ) apply_filters( 'subdirectory_reserved_names', array( 'page', 'comments', 'blog', 'files', 'feed', 'wp-admin', 'wp-content', 'wp-includes', 'wp-json', 'embed' ) )
); );
} }

View File

@ -146,6 +146,7 @@ require( ABSPATH . WPINC . '/update.php' );
require( ABSPATH . WPINC . '/canonical.php' ); require( ABSPATH . WPINC . '/canonical.php' );
require( ABSPATH . WPINC . '/shortcodes.php' ); require( ABSPATH . WPINC . '/shortcodes.php' );
require( ABSPATH . WPINC . '/class-wp-embed.php' ); require( ABSPATH . WPINC . '/class-wp-embed.php' );
require( ABSPATH . WPINC . '/embed-functions.php' );
require( ABSPATH . WPINC . '/media.php' ); require( ABSPATH . WPINC . '/media.php' );
require( ABSPATH . WPINC . '/http.php' ); require( ABSPATH . WPINC . '/http.php' );
require( ABSPATH . WPINC . '/widgets.php' ); require( ABSPATH . WPINC . '/widgets.php' );