Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/02/2024 12:43:50 PM (12 months ago)
Author:
imath
Message:

Use a more appropriate function to escape slugs

Props johndawson155

See #9143 (trunk)
Closes https://github.com/buddypress/buddypress/pull/277

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-template.php

    r13808 r13844  
    1717 */
    1818function bp_groups_slug() {
    19     echo esc_url( bp_get_groups_slug() );
     19    echo esc_attr( bp_get_groups_slug() );
    2020}
    2121    /**
     
    4444 */
    4545function bp_groups_root_slug() {
    46     echo esc_url( bp_get_groups_root_slug() );
     46    echo esc_attr( bp_get_groups_root_slug() );
    4747}
    4848    /**
     
    7171 */
    7272function bp_groups_group_type_base() {
    73     echo esc_url( bp_get_groups_group_type_base() );
     73    echo esc_attr( bp_get_groups_group_type_base() );
    7474}
    7575    /**
     
    14311431 */
    14321432function bp_group_slug( $group = false ) {
    1433     echo esc_url( bp_get_group_slug( $group ) );
     1433    echo esc_attr( bp_get_group_slug( $group ) );
    14341434}
    14351435    /**
     
    45104510 */
    45114511function bp_group_pag_id() {
    4512     echo esc_url( bp_get_group_pag_id() );
     4512    echo esc_attr( bp_get_group_pag_id() );
    45134513}
    45144514    /**
     
    64876487 */
    64886488function bp_current_group_slug() {
    6489     echo esc_url( bp_get_current_group_slug() );
     6489    echo esc_attr( bp_get_current_group_slug() );
    64906490}
    64916491    /**
Note: See TracChangeset for help on using the changeset viewer.