Opened 5 months ago
Closed 5 months ago
#9148 closed defect (bug) (fixed)
Mistake in XProfile Template Function when gettting Group Slug
Reported by: | gingerbooch | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 12.4.1 |
Component: | Extended Profile | Keywords: | |
Cc: |
Description
Hi there, I'm actually testing updating from BuddyPress 11.4.0 to 12.4.1.
It seems there is a mistake in the xprofile template function when getting the profile group slug.
I think that the function "bp_the_profile_group_slug()" contains an error resulting in a wrong css class, which is an origin for custom broken css.
<?php /** * Output the XProfile group slug. * * @since 1.1.0 */ function bp_the_profile_group_slug() { echo esc_url( bp_get_the_profile_group_slug() ); }
With the default configuration, the code above should return "base", but the "esc_url()" function used here returns "http://base". I think it should be replaced by "esc_html()" :
<?php /** * Output the XProfile group slug. * * @since 1.1.0 */ function bp_the_profile_group_slug() { echo esc_html( bp_get_the_profile_group_slug() ); }
Is it possible to fix this please ?
Change History (5)
#2
@
5 months ago
Hi @gingerbooch
Thanks a lot for your report, I believe it was fixed 4 days ago. We’ll soon publish a minor release.
#3
@
5 months ago
Hi @imath,
Thanks for your answer.
I will wait for that next update before pushing it into production 👍
An exemple can be seen when editting the Profile Base Group for a user, then checking the css path of the title element :
The last element.