diff --git a/connectors/class-connector-acf.php b/connectors/class-connector-acf.php index 15ace08ff..29672792a 100644 --- a/connectors/class-connector-acf.php +++ b/connectors/class-connector-acf.php @@ -196,8 +196,8 @@ public function callback_post_updated( $post_id, $posts_after, $posts_before ) { return; } - $_new = maybe_unserialize( $posts_after->post_content ) ?? array(); - $_old = maybe_unserialize( $posts_before->post_content ) ?? array(); + $_new = ! empty( $posts_after->post_content ) ? maybe_unserialize( $posts_after->post_content ) : array(); + $_old = ! empty( $posts_before->post_content ) ? maybe_unserialize( $posts_before->post_content ) : array(); // Get updated settings. $updated_keys = $this->get_changed_keys( $_new, $_old );