Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/15/2020 05:30:13 AM (6 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/deprecated/6.0.php

    r12568 r12569  
    144144        _deprecated_function( __FUNCTION__, '6.0' );
    145145    }
     146
     147/**
     148 * Add illegal blog names to WP so that root components will not conflict with blog names on a subdirectory installation.
     149 *
     150 * For example, it would stop someone creating a blog with the slug "groups".
     151 *
     152 * @since 1.0.0
     153 * @deprecated 6.0.0
     154 */
     155function bp_core_add_illegal_names() {
     156    _deprecated_function( __FUNCTION__, '6.0' );
     157
     158    update_site_option( 'illegal_names', get_site_option( 'illegal_names' ), array() );
     159}
Note: See TracChangeset for help on using the changeset viewer.