Changeset 13433 for trunk/src/bp-xprofile/bp-xprofile-activity.php
- Timestamp:
- 03/07/2023 04:28:08 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-xprofile/bp-xprofile-activity.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-activity.php
r13108 r13433 50 50 */ 51 51 function bp_xprofile_format_activity_action_updated_profile( $action, $activity ) { 52 53 // Note for translators: The natural phrasing in English, "Joe updated 54 // his profile", requires that we know Joe's gender, which we don't. If 55 // your language doesn't have this restriction, feel free to use a more 56 // natural translation. 57 $profile_link = trailingslashit( bp_core_get_user_domain( $activity->user_id ) . bp_get_profile_slug() ); 52 /* 53 * Note for translators: The natural phrasing in English, "Joe updated 54 * his profile", requires that we know Joe's gender, which we don't. If 55 * your language doesn't have this restriction, feel free to use a more 56 * natural translation. 57 */ 58 $profile_link = bp_members_get_user_url( 59 $activity->user_id, 60 array( 61 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_profile', bp_get_profile_slug() ), 62 ) 63 ); 58 64 59 65 /* translators: %s: user profile link */ … … 247 253 248 254 // If we've reached this point, assemble and post the activity item. 249 $profile_link = trailingslashit( bp_core_get_user_domain( $user_id ) . bp_get_profile_slug() ); 255 $profile_link = bp_members_get_user_url( 256 $user_id, 257 array( 258 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_profile', bp_get_profile_slug() ), 259 ) 260 ); 250 261 251 262 return (bool) xprofile_record_activity( array(
Note: See TracChangeset
for help on using the changeset viewer.