Skip to content

Commit fb59436

Browse files
matticbotobenland
authored andcommitted
Add changelog
1 parent bbbfea0 commit fb59436

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fixed
3+
4+
False mention email notifications for users in CC field without actual mention tags.

tests/phpunit/tests/includes/class-test-mailer.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,13 @@ public function test_mention_with_array() {
832832
'object' => array(
833833
'id' => 'https://example.com/post/1',
834834
'content' => 'Test mention',
835+
'tag' => array(
836+
array(
837+
'type' => 'Mention',
838+
'href' => Actors::get_by_id( $user_id )->get_id(),
839+
'name' => '@test',
840+
),
841+
),
835842
),
836843
'cc' => array( Actors::get_by_id( $user_id )->get_id() ),
837844
);
@@ -954,6 +961,13 @@ public function test_mention_filters_recipients() {
954961
'object' => array(
955962
'id' => 'https://example.com/post/1',
956963
'content' => 'Test mention',
964+
'tag' => array(
965+
array(
966+
'type' => 'Mention',
967+
'href' => Actors::get_by_id( $user_id )->get_id(),
968+
'name' => '@test',
969+
),
970+
),
957971
),
958972
// Only user_id is in CC, not other_user_id.
959973
'cc' => array( Actors::get_by_id( $user_id )->get_id() ),

0 commit comments

Comments
 (0)