Skip to content

Commit

Permalink
Fixes joppuyo#130: Rest API throws "Fatal Error: Call to undefined me…
Browse files Browse the repository at this point in the history
…thod stdClass::format_value_for_rest()"
  • Loading branch information
jameelmoses committed Jun 30, 2023
1 parent e9c4c11 commit 14564fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fields/class-npx-acf-field-image-aspect-ratio-crop-v5.php
Original file line number Diff line number Diff line change
Expand Up @@ -1135,5 +1135,6 @@ function wp_prepare_attachment_for_js($response, $attachment, $meta)
}

// initialize
new npx_acf_field_image_aspect_ratio_crop($this->settings);
$instance = new npx_acf_field_image_aspect_ratio_crop($this->settings);
acf_register_field_type($instance);
?>

0 comments on commit 14564fb

Please sign in to comment.