From 4a82edcd22106cb73d5dafd839fb9fe6cceab1bf Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Tue, 11 Jul 2023 14:48:04 +0200 Subject: [PATCH] Revert "fix #358" This reverts commit ad18edbceab9bdd8a5964774b5115a9aa597b090. --- includes/transformer/class-post.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/includes/transformer/class-post.php b/includes/transformer/class-post.php index 568a0e3b..7c7d990c 100644 --- a/includes/transformer/class-post.php +++ b/includes/transformer/class-post.php @@ -116,17 +116,7 @@ class Post { $object->set_id( \esc_url( \get_permalink( $wp_post->ID ) ) ); $object->set_url( \esc_url( \get_permalink( $wp_post->ID ) ) ); $object->set_type( $this->get_object_type() ); - - $published = \strtotime( $wp_post->post_date_gmt ); - - $object->set_published( \gmdate( 'Y-m-d\TH:i:s\Z', $published ) ); - - $updated = \strtotime( $wp_post->post_modified_gmt ); - - if ( $updated > $published ) { - $object->set_updated( \gmdate( 'Y-m-d\TH:i:s\Z', $updated ) ); - } - + $object->set_published( \gmdate( 'Y-m-d\TH:i:s\Z', \strtotime( $wp_post->post_date_gmt ) ) ); $object->set_attributed_to( $this->get_attributed_to() ); $object->set_content( $this->get_content() ); $object->set_content_map(