Changeset 13897
- Timestamp:
- 06/02/2024 05:52:42 PM (11 months ago)
- Location:
- trunk/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r13890 r13897 173 173 174 174 // Try to find mentions. 175 $usernames = bp_activity_find_mentions( strip_tags( $activity->content ) );175 $usernames = bp_activity_find_mentions( wp_strip_all_tags( $activity->content ) ); 176 176 177 177 // Still empty? Stop now. -
trunk/src/bp-activity/bp-activity-template.php
r13844 r13897 3205 3205 * @param int $user_id ID of the queried user. 3206 3206 */ 3207 $latest_update = apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], bp_activity_get_excerpt_length()) ) ), $user_id );3207 $latest_update = apply_filters( 'bp_get_activity_latest_update_excerpt', wp_strip_all_tags( bp_create_excerpt( $update['content'], bp_activity_get_excerpt_length() ) ), $user_id ); 3208 3208 3209 3209 $latest_update = sprintf( … … 4196 4196 4197 4197 $content = explode( '<span', $content ); 4198 $title = strip_tags( ent2ncr( trim( convert_chars( $content[0] ) ) ) );4198 $title = wp_strip_all_tags( ent2ncr( trim( convert_chars( $content[0] ) ) ) ); 4199 4199 4200 4200 if ( ':' === substr( $title, -1 ) ) { … … 4203 4203 4204 4204 if ( 'activity_update' === $activities_template->activity->type ) { 4205 $title .= ': ' . strip_tags( ent2ncr( trim( convert_chars( bp_create_excerpt( $activities_template->activity->content, 70, array( 'ending' => " […]" ) ) ) ) ) );4205 $title .= ': ' . wp_strip_all_tags( ent2ncr( trim( convert_chars( bp_create_excerpt( $activities_template->activity->content, 70, array( 'ending' => " […]" ) ) ) ) ) ); 4206 4206 } 4207 4207 -
trunk/src/bp-activity/classes/class-bp-activity-activity.php
r13890 r13897 1881 1881 for ( $i = 0, $count = count( $activities ); $i < $count; ++$i ) { 1882 1882 $title = explode( '<span', $activities[$i]['content'] ); 1883 $activity_feed[$i]['title'] = trim( strip_tags( $title[0] ));1883 $activity_feed[$i]['title'] = wp_strip_all_tags( $title[0] ); 1884 1884 $activity_feed[$i]['link'] = $activities[$i]['primary_link']; 1885 1885 $activity_feed[$i]['description'] = @sprintf( $activities[$i]['content'], '' ); -
trunk/src/bp-activity/classes/class-bp-activity-feed.php
r13816 r13897 201 201 protected function setup_properties() { 202 202 $this->id = sanitize_title( $this->id ); 203 $this->title = strip_tags( $this->title );203 $this->title = wp_strip_all_tags( $this->title ); 204 204 $this->link = esc_url_raw( $this->link ); 205 $this->description = strip_tags( $this->description );205 $this->description = wp_strip_all_tags( $this->description ); 206 206 $this->ttl = (int) $this->ttl; 207 $this->update_period = strip_tags( $this->update_period );207 $this->update_period = wp_strip_all_tags( $this->update_period ); 208 208 $this->update_frequency = (int) $this->update_frequency; 209 209 $this->activity_args = bp_parse_args( -
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 } -
trunk/src/bp-core/classes/class-bp-media-extractor.php
r13893 r13897 933 933 */ 934 934 protected function strip_markup( $richtext ) { 935 $plaintext = strip_shortcodes( html_entity_decode( strip_tags( $richtext ) ) );935 $plaintext = strip_shortcodes( html_entity_decode( wp_strip_all_tags( $richtext ) ) ); 936 936 937 937 /** -
trunk/src/bp-groups/screens/single/request-membership.php
r13882 r13897 52 52 // If the member added a message to their request include it into the request arguments. 53 53 if ( isset( $_POST['group-request-membership-comments'] ) && $_POST['group-request-membership-comments'] ) { 54 $request_args['content'] = strip_tags( wp_unslash( $_POST['group-request-membership-comments'] ) );54 $request_args['content'] = wp_strip_all_tags( wp_unslash( $_POST['group-request-membership-comments'] ) ); 55 55 } 56 56 -
trunk/src/bp-members/bp-members-functions.php
r13894 r13897 515 515 return apply_filters( 'bp_core_get_user_displayname', get_the_author_meta( 'display_name', $user_id ), $user_id ); 516 516 } 517 add_filter( 'bp_core_get_user_displayname', ' strip_tags', 1 );517 add_filter( 'bp_core_get_user_displayname', 'wp_strip_all_tags', 1 ); 518 518 add_filter( 'bp_core_get_user_displayname', 'trim' ); 519 519 add_filter( 'bp_core_get_user_displayname', 'stripslashes' ); -
trunk/src/bp-members/bp-members-template.php
r13844 r13897 1013 1013 add_filter( 'bp_get_member_name', 'wp_filter_kses' ); 1014 1014 add_filter( 'bp_get_member_name', 'stripslashes' ); 1015 add_filter( 'bp_get_member_name', ' strip_tags');1015 add_filter( 'bp_get_member_name', 'wp_strip_all_tags' ); 1016 1016 add_filter( 'bp_get_member_name', 'esc_html' ); 1017 1017 … … 1149 1149 1150 1150 if ( ! empty( $update['content'] ) ) { 1151 $excerpt = trim( strip_tags( bp_create_excerpt( $update['content'], $length )) );1152 $update['content'] = trim( strip_tags( $update['content'] ));1151 $excerpt = wp_strip_all_tags( bp_create_excerpt( $update['content'], $length ) ); 1152 $update['content'] = wp_strip_all_tags( $update['content'] ); 1153 1153 $update['excerpt'] = $excerpt; 1154 1154 } else { -
trunk/src/bp-messages/bp-messages-template.php
r13878 r13897 206 206 * @param string $value Excerpt of the current thread in the loop. 207 207 */ 208 return apply_filters( 'bp_get_message_thread_excerpt', strip_tags( bp_create_excerpt( $messages_template->thread->last_message_content, 75 ) ) );208 return apply_filters( 'bp_get_message_thread_excerpt', wp_strip_all_tags( bp_create_excerpt( $messages_template->thread->last_message_content, 75 ) ) ); 209 209 } 210 210 -
trunk/src/bp-templates/bp-nouveau/includes/messages/ajax.php
r13878 r13897 503 503 $thread->thread = array( 504 504 'id' => bp_get_the_thread_id(), 505 'subject' => strip_tags( bp_get_the_thread_subject() ),505 'subject' => wp_strip_all_tags( bp_get_the_thread_subject() ), 506 506 ); 507 507 -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-url.php
r13806 r13897 188 188 */ 189 189 public static function display_filter( $field_value, $field_id = '' ) { 190 $link = strip_tags( $field_value );190 $link = wp_strip_all_tags( $field_value ); 191 191 $no_scheme = preg_replace( '#^https?://#', '', rtrim( $link, '/' ) ); 192 192 $url_text = str_replace( $link, $no_scheme, $field_value );
Note: See TracChangeset
for help on using the changeset viewer.