Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/23/2014 08:43:51 PM (12 years ago)
Author:
imath
Message:

Make sure to get the subdomain base on Multisite configs

Move the function to get the subdomain base out of the blogs component to be sure it will be retrieved (when registering a new blog) even if the blogs component is not active.

fixes #5530

File:
1 edited

Legend:

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

    r8677 r8683  
    571571}
    572572add_action( 'bp_adminbar_menus', 'bp_adminbar_notifications_menu', 8 );
     573
     574/**
     575 * Output the base URL for subdomain installations of WordPress Multisite.
     576 *
     577 * @since BuddyPress (1.6.0)
     578 *
     579 * @deprecated BuddyPress (2.1.0)
     580 */
     581function bp_blogs_subdomain_base() {
     582    _deprecated_function( __FUNCTION__, '2.1', 'bp_signup_subdomain_base()' );
     583    echo bp_signup_get_subdomain_base();
     584}
     585
     586/**
     587 * Return the base URL for subdomain installations of WordPress Multisite.
     588 *
     589 * @since BuddyPress (1.6.0)
     590 *
     591 * @return string The base URL - eg, 'example.com' for site_url() example.com or www.example.com.
     592 *
     593 * @deprecated BuddyPress (2.1.0)
     594 */
     595function bp_blogs_get_subdomain_base() {
     596    _deprecated_function( __FUNCTION__, '2.1', 'bp_signup_get_subdomain_base()' );
     597    return bp_signup_get_subdomain_base();
     598}
Note: See TracChangeset for help on using the changeset viewer.