Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/02/2024 12:45:08 PM (2 years ago)
Author:
imath
Message:

Use a more appropriate function to escape slugs

Props johndawson155

Fixes #9143 (branch 12.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/12.0/src/bp-activity/bp-activity-template.php

    r13821 r13845  
    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.