Changeset 9772 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 04/20/2015 03:38:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r9650 r9772 1362 1362 1363 1363 if ( is_multisite() ) { 1364 $blog_link = '<a href="' . $blog_url. '">' . get_blog_option( $activity->item_id, 'blogname' ) . '</a>';1364 $blog_link = '<a href="' . esc_url( $blog_url ) . '">' . get_blog_option( $activity->item_id, 'blogname' ) . '</a>'; 1365 1365 1366 1366 if ( ! empty( $bp->activity->track[ $activity->type ]->new_post_type_action_ms ) ) { 1367 1367 $action = sprintf( $bp->activity->track[ $activity->type ]->new_post_type_action_ms, $user_link, $post_url, $blog_link ); 1368 1368 } else { 1369 $action = sprintf( _x( '%1$s wrote a new <a href="%2$s">item</a>, on the site %3$s', 'Activity Custom Post Type post action', 'buddypress' ), $user_link, $post_url, $blog_link );1369 $action = sprintf( _x( '%1$s wrote a new <a href="%2$s">item</a>, on the site %3$s', 'Activity Custom Post Type post action', 'buddypress' ), $user_link, esc_url( $post_url ), $blog_link ); 1370 1370 } 1371 1371 } else { … … 1373 1373 $action = sprintf( $bp->activity->track[ $activity->type ]->new_post_type_action, $user_link, $post_url ); 1374 1374 } else { 1375 $action = sprintf( _x( '%1$s wrote a new <a href="%2$s">item</a>', 'Activity Custom Post Type post action', 'buddypress' ), $user_link, $post_url);1375 $action = sprintf( _x( '%1$s wrote a new <a href="%2$s">item</a>', 'Activity Custom Post Type post action', 'buddypress' ), $user_link, esc_url( $post_url ) ); 1376 1376 } 1377 1377 }
Note: See TracChangeset
for help on using the changeset viewer.