File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ public static function send_webmentions( $post_id ) {
210
210
// filter links
211
211
$ targets = apply_filters ( 'webmention_links ' , $ urls , $ post_id );
212
212
$ targets = array_unique ( $ targets );
213
- $ mentioned = get_post_meta ( $ post ->ID , 'webmention_last_mentioned_urls ' , true );
213
+ $ mentioned = get_post_meta ( $ post ->ID , '_webmentioned ' , true );
214
214
$ mentioned = empty ( $ mentioned ) ? array () : $ mentioned ;
215
215
216
216
// Find previously sent Webmentions and send them one last time.
@@ -249,7 +249,7 @@ public static function send_webmentions( $post_id ) {
249
249
}
250
250
251
251
if ( ! empty ( $ mentions ) ) {
252
- update_post_meta ( $ post_id , 'webmention_last_mentioned_urls ' , $ mentions );
252
+ update_post_meta ( $ post_id , '_webmentioned ' , $ mentions );
253
253
}
254
254
255
255
$ pung = get_pung ( $ post );
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public function test_send_webmentions() {
35
35
$ this ->assertContains ( 'https://example.com ' , $ result );
36
36
37
37
// Überprüfe, ob die URLs in den Post-Meta gespeichert wurden
38
- $ mentioned_urls = get_post_meta ( $ this ->post ->ID , 'webmention_last_mentioned_urls ' , true );
38
+ $ mentioned_urls = get_post_meta ( $ this ->post ->ID , '_webmentioned ' , true );
39
39
$ this ->assertIsArray ( $ mentioned_urls );
40
40
$ this ->assertContains ( 'https://example.com ' , $ mentioned_urls );
41
41
}
You can’t perform that action at this time.
0 commit comments