Changeset 9773 for branches/2.2/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 04/20/2015 04:08:00 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/src/bp-activity/bp-activity-functions.php
r9384 r9773 1367 1367 1368 1368 if ( is_multisite() ) { 1369 $blog_link = '<a href="' . $blog_url. '">' . get_blog_option( $activity->item_id, 'blogname' ) . '</a>';1369 $blog_link = '<a href="' . esc_url( $blog_url ) . '">' . get_blog_option( $activity->item_id, 'blogname' ) . '</a>'; 1370 1370 1371 1371 if ( ! empty( $bp->activity->track[ $activity->type ]->new_post_type_action_ms ) ) { 1372 1372 $action = sprintf( $bp->activity->track[ $activity->type ]->new_post_type_action_ms, $user_link, $post_url, $blog_link ); 1373 1373 } else { 1374 $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 );1374 $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 ); 1375 1375 } 1376 1376 } else { … … 1378 1378 $action = sprintf( $bp->activity->track[ $activity->type ]->new_post_type_action, $user_link, $post_url ); 1379 1379 } else { 1380 $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);1380 $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 ) ); 1381 1381 } 1382 1382 }
Note: See TracChangeset
for help on using the changeset viewer.