Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/15/2020 05:30:13 AM (5 years ago)
Author:
imath
Message:

Add Root component slugs to MS Subdirectory site reserved names

This is avoiding slug conflicts between BuddyPress root components slugs and subdirectory site slugs.

PS: bp_core_add_illegal_names() has been deprecated in 6.0.

Props santiazpi2

Fixes #8187

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-functions.php

    r12545 r12569  
    904904    $page_ids = array_merge( $new_page_ids, bp_core_get_directory_page_ids( 'all' ) );
    905905    bp_core_update_directory_page_ids( $page_ids );
    906 }
    907 
    908 /**
    909  * Add illegal blog names to WP so that root components will not conflict with blog names on a subdirectory installation.
    910  *
    911  * For example, it would stop someone creating a blog with the slug "groups".
    912  *
    913  * @since 1.0.0
    914  *
    915  * @todo Deprecate?
    916  */
    917 function bp_core_add_illegal_names() {
    918     update_site_option( 'illegal_names', get_site_option( 'illegal_names' ), array() );
    919906}
    920907
Note: See TracChangeset for help on using the changeset viewer.