Skip to content

Commit 8509a10

Browse files
Marco PereirinhaDavidCramer
authored andcommitted
Fix a typo on stored meta
1 parent b8f7af1 commit 8509a10

File tree

1 file changed

+1
-1
lines changed
  • cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media

1 file changed

+1
-1
lines changed

cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ public function pre_filter_rest_content( $response, $post, $request ) {
558558
$data['meta'][ Global_Transformations::META_FEATURED_IMAGE_KEY ] = $disable;
559559
} else {
560560
// If the param was found, its a save edit, to update the meta data.
561-
update_post_meta( $post->ID, Global_Transformations::META_FEATURED_IMAGE_KEY, (bool) $data['meta'] );
561+
update_post_meta( $post->ID, Global_Transformations::META_FEATURED_IMAGE_KEY, (bool) $data['meta'][ Global_Transformations::META_FEATURED_IMAGE_KEY ] );
562562
}
563563
}
564564
$response->set_data( $data );

0 commit comments

Comments
 (0)