Changeset 12393 for trunk/src/bp-blogs/bp-blogs-activity.php
- Timestamp:
- 05/03/2019 05:27:08 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-activity.php
r12281 r12393 128 128 $blog_name = bp_blogs_get_blogmeta( $activity->item_id, 'name' ); 129 129 130 $action = sprintf( __( '%s created the site %s', 'buddypress' ), bp_core_get_userlink( $activity->user_id ), '<a href="' . esc_url( $blog_url ) . '">' . esc_html( $blog_name ) . '</a>' );130 $action = sprintf( esc_html__( '%s created the site %s', 'buddypress' ), bp_core_get_userlink( $activity->user_id ), '<a href="' . esc_url( $blog_url ) . '">' . esc_html( $blog_name ) . '</a>' ); 131 131 132 132 // Legacy filter - requires the BP_Blogs_Blog object. … … 210 210 if ( empty( $post_title ) ) { 211 211 // Defaults to no title. 212 $post_title = esc_html__( '(no title)', 'buddypress' );212 $post_title = __( '(no title)', 'buddypress' ); 213 213 214 214 switch_to_blog( $activity->item_id ); … … 231 231 232 232 // Build the 'post link' part of the activity action string. 233 $post_link = '<a href="' . esc_url( $post_url ) . '">' . $post_title. '</a>';233 $post_link = '<a href="' . esc_url( $post_url ) . '">' . esc_html( $post_title ) . '</a>'; 234 234 235 235 $user_link = bp_core_get_userlink( $activity->user_id ); … … 237 237 // Build the complete activity action string. 238 238 if ( is_multisite() ) { 239 $action = sprintf( __( '%1$s wrote a new post, %2$s, on the site %3$s', 'buddypress' ), $user_link, $post_link, '<a href="' . esc_url( $blog_url ) . '">' . esc_html( $blog_name ) . '</a>' );239 $action = sprintf( esc_html__( '%1$s wrote a new post, %2$s, on the site %3$s', 'buddypress' ), $user_link, $post_link, '<a href="' . esc_url( $blog_url ) . '">' . esc_html( $blog_name ) . '</a>' ); 240 240 } else { 241 $action = sprintf( __( '%1$s wrote a new post, %2$s', 'buddypress' ), $user_link, $post_link );241 $action = sprintf( esc_html__( '%1$s wrote a new post, %2$s', 'buddypress' ), $user_link, $post_link ); 242 242 } 243 243 … … 359 359 } 360 360 361 $post_link = '<a href="' . esc_url( $post_url ) . '">' . $post_title. '</a>';361 $post_link = '<a href="' . esc_url( $post_url ) . '">' . esc_html( $post_title ) . '</a>'; 362 362 $user_link = bp_core_get_userlink( $activity->user_id ); 363 363 364 364 if ( is_multisite() ) { 365 $action = sprintf( __( '%1$s commented on the post, %2$s, on the site %3$s', 'buddypress' ), $user_link, $post_link, '<a href="' . esc_url( $blog_url ) . '">' . esc_html( $blog_name ) . '</a>' );365 $action = sprintf( esc_html__( '%1$s commented on the post, %2$s, on the site %3$s', 'buddypress' ), $user_link, $post_link, '<a href="' . esc_url( $blog_url ) . '">' . esc_html( $blog_name ) . '</a>' ); 366 366 } else { 367 $action = sprintf( __( '%1$s commented on the post, %2$s', 'buddypress' ), $user_link, $post_link );367 $action = sprintf( esc_html__( '%1$s commented on the post, %2$s', 'buddypress' ), $user_link, $post_link ); 368 368 } 369 369
Note: See TracChangeset
for help on using the changeset viewer.