diff --git a/admin/Ilove_Img_Wm_Process.php b/admin/Ilove_Img_Wm_Process.php index 7030bdd..95f782b 100644 --- a/admin/Ilove_Img_Wm_Process.php +++ b/admin/Ilove_Img_Wm_Process.php @@ -87,7 +87,7 @@ public function watermark( $images_id ) { $images_restore = array_unique( $images_restore ); - update_option( 'iloveimg_images_to_restore', wp_json_encode( $images_restore ) ); + update_option( 'iloveimg_images_to_restore', wp_json_encode( $images_restore, JSON_FORCE_OBJECT ) ); } foreach ( $_sizes as $_size ) {