[buddypress-trac] [BuddyPress] #4632: my-sites.php Create site slug
buddypress-trac
noreply at wordpress.org
Mon Oct 29 23:33:00 UTC 2012
#4632: my-sites.php Create site slug
--------------------------+-----------------------------
Reporter: gmax21 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version:
Severity: minor | Keywords: has-patch
--------------------------+-----------------------------
Forgive me is this is reported, I couldn't find it and I didn't see it in
the source.
/buddypress/bp-blogs/bp-blogs-filters.php
Returns the old slug /blogs/create if the page was custom it didn't return
the new custom page.
Proposed change from:
{{{
function bp_blogs_creation_location( $url ) {
return apply_filters( 'bp_blogs_creation_location', trailingslashit(
bp_get_root_domain() . '/' . bp_get_blogs_slug() . '/create', $url ) );
}
add_filter( 'wp_signup_location', 'bp_blogs_creation_location' );
}}}
To:
{{{
function bp_blogs_creation_location( $url ) {
return apply_filters( 'bp_blogs_creation_location', trailingslashit(
bp_get_root_domain() . '/' . bp_get_blogs_root_slug() . '/create', $url )
);
}
add_filter( 'wp_signup_location', 'bp_blogs_creation_location' );
}}}
Thanks.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4632>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list