[buddypress-trac] [BuddyPress Trac] #9148: Mistake in XProfile Template Function when gettting Group Slug
buddypress-trac
noreply at wordpress.org
Sun May 5 21:39:17 UTC 2024
#9148: Mistake in XProfile Template Function when gettting Group Slug
------------------------------+-----------------------------
Reporter: gingerbooch | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Extended Profile | Version: 12.4.1
Severity: normal | Keywords:
------------------------------+-----------------------------
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
<?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
<?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 ?
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9148>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list