From ed236a70c57ed23b00601c52fa7c941cc29e8072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Mon, 25 Nov 2024 19:10:57 +0100 Subject: [PATCH] allow global variable override for EventPrime --- includes/plugins/class-eventprime.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/plugins/class-eventprime.php b/includes/plugins/class-eventprime.php index 17a944e..e5fb8d6 100644 --- a/includes/plugins/class-eventprime.php +++ b/includes/plugins/class-eventprime.php @@ -205,8 +205,7 @@ final class EventPrime extends Event_Plugin { if ( $activitypub_template ) { global $post; - // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited - $post = get_post( $post_id ); + $post = get_post( $post_id ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited // Ensure WordPress functions use the new post data. setup_postdata( $post );