Skip to content

Commit 76a9fac

Browse files
committed
Use get_subdirectory_reserved_names function
1 parent d7235c8 commit 76a9fac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Site_Command.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,7 @@ public function generate( $args, $assoc_args ) {
552552
$is_subdomain_install = is_subdomain_install();
553553
// If not a subdomain install, make sure the domain isn't a reserved word
554554
if ( ! $is_subdomain_install ) {
555-
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Calling WordPress native hook.
556-
$subdirectory_reserved_names = apply_filters( 'subdirectory_reserved_names', [ 'page', 'comments', 'blog', 'files', 'feed' ] );
555+
$subdirectory_reserved_names = get_subdirectory_reserved_names();
557556
if ( in_array( $base, $subdirectory_reserved_names, true ) ) {
558557
WP_CLI::error( 'The following words are reserved and cannot be used as blog names: ' . implode( ', ', $subdirectory_reserved_names ) );
559558
}

0 commit comments

Comments
 (0)