Skip to content

Commit a888261

Browse files
committed
use simpler name
1 parent b0d1085 commit a888261

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

includes/class-sender.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public static function send_webmentions( $post_id ) {
210210
// filter links
211211
$targets = apply_filters( 'webmention_links', $urls, $post_id );
212212
$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 );
214214
$mentioned = empty( $mentioned ) ? array() : $mentioned;
215215

216216
// Find previously sent Webmentions and send them one last time.
@@ -249,7 +249,7 @@ public static function send_webmentions( $post_id ) {
249249
}
250250

251251
if ( ! empty( $mentions ) ) {
252-
update_post_meta( $post_id, 'webmention_last_mentioned_urls', $mentions );
252+
update_post_meta( $post_id, '_webmentioned', $mentions );
253253
}
254254

255255
$pung = get_pung( $post );

tests/test-sender.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function test_send_webmentions() {
3535
$this->assertContains( 'https://example.com', $result );
3636

3737
// Ü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 );
3939
$this->assertIsArray( $mentioned_urls );
4040
$this->assertContains( 'https://example.com', $mentioned_urls );
4141
}

0 commit comments

Comments
 (0)