Changeset 7006 for trunk/src/includes/extend/buddypress/notifications.php
- Timestamp:
- 11/24/2019 01:38:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/extend/buddypress/notifications.php
r6981 r7006 93 93 $filter = 'bbp_single_new_subscription_notification'; 94 94 $text = ! empty( $secondary_item_id ) 95 ? sprintf( esc_html__( 'You have % d new reply to %2$s from %3$s', 'bbpress' ), $action_item_count, $topic_title, bp_core_get_user_displayname( $secondary_item_id ) )96 : sprintf( esc_html__( 'You have % d new reply to %s', 'bbpress' ), $action_item_count, $topic_title );95 ? sprintf( esc_html__( 'You have %1$d new reply to %2$s from %3$s', 'bbpress' ), $action_item_count, $topic_title, bp_core_get_user_displayname( $secondary_item_id ) ) 96 : sprintf( esc_html__( 'You have %1$d new reply to %2$s', 'bbpress' ), $action_item_count, $topic_title ); 97 97 } 98 98 … … 155 155 // Notify the topic author if not the current reply author 156 156 if ( $author_id !== $topic_author_id ) { 157 $args['secondary_item_id'] = $secondary_item_id 157 $args['secondary_item_id'] = $secondary_item_id; 158 158 159 159 bp_notifications_add_notification( $args );
Note: See TracChangeset
for help on using the changeset viewer.