Skip to content

Commit

Permalink
ACF connector post_updated callback updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed Jul 11, 2020
1 parent b3a8f22 commit 90a4f06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connectors/class-connector-acf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 90a4f06

Please sign in to comment.