WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/26/2010 03:13:16 AM (11 years ago)
Author:
nacin
Message:

Prevent super admins from shooting themselves in the foot. props jorbin. Checks blog names against an array (filterable) of reserved keywords for subdirectory installs. fixes #13304.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r14911 r14928  
    557557    }
    558558
     559    // On sub dir installs, Some names are so illegal, only a filter can spring them from jail
     560    if (! is_subdomain_install() )
     561        $illegal_names = array_merge($illegal_names, apply_filters( 'subdirectory_reserved_names', array( 'page', 'comments', 'blog', 'files', 'feed' ) ) );
     562
     563
    559564    if ( empty( $blogname ) )
    560565        $errors->add('blogname', __('Please enter a site name'));
Note: See TracChangeset for help on using the changeset viewer.