Skip to:
Content

BuddyPress.org

Changeset 6477


Ignore:
Timestamp:
10/30/2012 02:52:56 PM (11 years ago)
Author:
djpaul
Message:

Use the correct root slug when filtering the site registration link on wp-admin/my-sites.php.

This fixes an invalid link when the Sites directory page slug is different from "blogs".

Fixes #4632, props gmax21

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-filters.php

    r6372 r6477  
    3232 */
    3333function bp_blogs_creation_location( $url ) {
    34      return apply_filters( 'bp_blogs_creation_location', trailingslashit( bp_get_root_domain() . '/' . bp_get_blogs_slug() . '/create', $url ) );
     34    return apply_filters( 'bp_blogs_creation_location', trailingslashit( bp_get_root_domain() . '/' . bp_get_blogs_root_slug() . '/create', $url ) );
    3535}
    3636add_filter( 'wp_signup_location', 'bp_blogs_creation_location' );
Note: See TracChangeset for help on using the changeset viewer.