From d8f9cc6fffa9e559223f7f8a27080ced9d334a74 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 27 Oct 2013 23:36:46 +0000 Subject: [PATCH] Mark `subdirectory_reserved_names` filter as duplicate in wp-admin/network/site-new.php. Props ninio. Fixes #25729. git-svn-id: https://develop.svn.wordpress.org/trunk@25962 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/network/site-new.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-admin/network/site-new.php b/src/wp-admin/network/site-new.php index df98d95268..6df357a0fc 100644 --- a/src/wp-admin/network/site-new.php +++ b/src/wp-admin/network/site-new.php @@ -45,6 +45,7 @@ if ( isset($_REQUEST['action']) && 'add-site' == $_REQUEST['action'] ) { // If not a subdomain install, make sure the domain isn't a reserved word if ( ! is_subdomain_install() ) { + /** This filter is documented in wp-includes/ms-functions.php */ $subdirectory_reserved_names = apply_filters( 'subdirectory_reserved_names', array( 'page', 'comments', 'blog', 'files', 'feed' ) ); if ( in_array( $domain, $subdirectory_reserved_names ) ) wp_die( sprintf( __('The following words are reserved for use by WordPress functions and cannot be used as blog names: %s' ), implode( ', ', $subdirectory_reserved_names ) ) );