Changeset 13897 for trunk/src/bp-core/bp-core-template.php
- Timestamp:
- 06/02/2024 05:52:42 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template.php
r13890 r13897 817 817 } 818 818 819 $totalLength = mb_strlen( strip_tags( $ending ) );819 $totalLength = mb_strlen( wp_strip_all_tags( $ending ) ); 820 820 $openTags = array(); 821 821 $truncate = ''; … … 867 867 // Strip HTML tags if necessary. 868 868 if ( ! empty( $r['strip_tags'] ) ) { 869 $text = strip_tags( $text );869 $text = wp_strip_all_tags( $text ); 870 870 } 871 871 … … 3059 3059 // Use component name on member pages. 3060 3060 } else { 3061 $bp_title_parts = array_merge( $bp_title_parts, array_map( ' strip_tags', array(3061 $bp_title_parts = array_merge( $bp_title_parts, array_map( 'wp_strip_all_tags', array( 3062 3062 $displayed_user_name, 3063 3063 $component_name, … … 3066 3066 // If we have a subnav name, add it separately for localization. 3067 3067 if ( ! empty( $component_subnav_name ) ) { 3068 $bp_title_parts[] = strip_tags( $component_subnav_name );3068 $bp_title_parts[] = wp_strip_all_tags( $component_subnav_name ); 3069 3069 } 3070 3070 }
Note: See TracChangeset
for help on using the changeset viewer.