From 164140cd60c9f737a31cc13e41898715d1634d8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Fri, 6 Dec 2024 17:06:52 +0100 Subject: [PATCH] fix protected functions in eventprime --- includes/activitypub/transformer/class-eventprime.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/activitypub/transformer/class-eventprime.php b/includes/activitypub/transformer/class-eventprime.php index 8fa5d4b..c85548e 100644 --- a/includes/activitypub/transformer/class-eventprime.php +++ b/includes/activitypub/transformer/class-eventprime.php @@ -23,7 +23,7 @@ final class EventPrime extends Event { /** * Get the end time from the event object. */ - protected function get_end_time(): ?string { + public function get_end_time(): ?string { $timestamp = get_post_meta( $this->wp_object->ID, 'em_end_date', true ); if ( $timestamp ) { return \gmdate( 'Y-m-d\TH:i:s\Z', $timestamp ); @@ -35,7 +35,7 @@ final class EventPrime extends Event { /** * Get the end time from the event object. */ - protected function get_start_time(): string { + public function get_start_time(): string { $timestamp = get_post_meta( $this->wp_object->ID, 'em_start_date', true ); if ( $timestamp ) { return \gmdate( 'Y-m-d\TH:i:s\Z', $timestamp ); @@ -47,7 +47,7 @@ final class EventPrime extends Event { /** * Get location from the event object. */ - protected function get_location(): ?Place { + public function get_location(): ?Place { $venue_term_id = get_post_meta( $this->wp_object->ID, 'em_venue', true ); if ( ! $venue_term_id ) { return null;