From 94b7812ecffd2c1fb6b3e2e91a173ac69ce7563b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Wed, 25 Dec 2024 23:09:22 +0100 Subject: [PATCH] fix phpcs and typos --- includes/table/class-event-sources.php | 2 +- .../activitypub/transmogrifier/class-test-gatherpress.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/table/class-event-sources.php b/includes/table/class-event-sources.php index 78c74de..6c88586 100644 --- a/includes/table/class-event-sources.php +++ b/includes/table/class-event-sources.php @@ -118,7 +118,7 @@ class Event_Sources extends WP_List_Table { 'icon' => esc_attr( $actor->get_icon_url() ), 'name' => esc_attr( $actor->get_name() ), 'url' => esc_attr( object_to_uri( $actor->get_id() ) ), - 'accepted' => esc_attr( get_post_meta( $actor->get__id(), '_event_bridge_for_activitypub_accept_of_follow', true ) ), + 'accepted' => esc_attr( get_post_meta( $actor->get__id(), '_event_bridge_for_activitypub_accept_of_follow', true ) ), 'identifier' => esc_attr( $actor->get_id() ), 'published' => esc_attr( $actor->get_published() ), 'modified' => esc_attr( $actor->get_updated() ), diff --git a/tests/includes/activitypub/transmogrifier/class-test-gatherpress.php b/tests/includes/activitypub/transmogrifier/class-test-gatherpress.php index 8db98ac..23a6346 100644 --- a/tests/includes/activitypub/transmogrifier/class-test-gatherpress.php +++ b/tests/includes/activitypub/transmogrifier/class-test-gatherpress.php @@ -215,7 +215,7 @@ class Test_GatherPress extends \WP_UnitTestCase { $event = new Event( $the_query->get_posts()[0] ); $this->assertEquals( 'Updated name', $event->event->post_title ); - $this->assertEquals( 'Updated address', $event->get_venue_information()['full address'] ); + $this->assertEquals( 'Updated address', $event->get_venue_information()['full_address'] ); // Test delete. $json['type'] = 'Delete';