WordPress.org

Make WordPress Core

Changeset 34850


Ignore:
Timestamp:
10/06/2015 03:44:25 AM (6 years ago)
Author:
wonderboymusic
Message:

oEmbed: add embed to $subdirectory_reserved_names.

Props jeremyfelt.
See #32522.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-new.php

    r34778 r34850  
    4848    if ( ! is_subdomain_install() ) {
    4949        /** 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', 'wp-json' ) );
     50        $subdirectory_reserved_names = apply_filters( 'subdirectory_reserved_names', array( 'page', 'comments', 'blog', 'embed', 'files', 'feed', 'wp-admin', 'wp-content', 'wp-includes', 'wp-json' ) );
    5151        if ( in_array( $domain, $subdirectory_reserved_names ) )
    5252            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 ) ) );
Note: See TracChangeset for help on using the changeset viewer.