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-activity/bp-activity-template.php

    r13820 r13844  
    1818 */
    1919function bp_activity_slug() {
    20     echo esc_url( bp_get_activity_slug() );
     20    echo esc_attr( bp_get_activity_slug() );
    2121}
    2222    /**
     
    4747 */
    4848function bp_activity_root_slug() {
    49     echo esc_url( bp_get_activity_root_slug() );
     49    echo esc_attr( bp_get_activity_root_slug() );
    5050}
    5151    /**
Note: See TracChangeset for help on using the changeset viewer.