| @@ -470,9 +470,8 @@ | ||
| 470 | 470 | 'image/image-to-image/unify-product-images', |
| 471 | 471 | [ |
| 472 | 472 | 'aspectRatio' => $image_data['promptSettings'][ self::ASPECT_RATIO ], |
| 473 | 473 | 'backgroundColor' => $image_data['promptSettings'][ self::IMAGE_BACKGROUND_COLOR ], |
| 474 | - 'featureIdentifier' => $image_data['featureIdentifier'], | |
| 475 | 474 | 'context' => wp_json_encode( $context ), |
| 476 | 475 | 'ids' => $request_ids, |
| 477 | 476 | 'api_version' => ELEMENTOR_VERSION, |
| 478 | 477 | 'site_lang' => get_bloginfo( 'language' ), |
| @@ -872,11 +871,10 @@ | ||
| 872 | 871 | ); |
| 873 | 872 | } |
| 874 | 873 | |
| 875 | 874 | public function toggle_favorite_history_item( $id, $context = [] ) { |
| 876 | - $sanitized_id = str_replace( '%', '%%', $id ); | |
| 877 | 875 | return $this->ai_request( |
| 878 | - 'POST', sprintf( 'history/%s/favorite', $sanitized_id ), | |
| 876 | + 'POST', sprintf( 'history/%s/favorite', $id ), | |
| 879 | 877 | [ |
| 880 | 878 | 'context' => wp_json_encode( $context ), |
| 881 | 879 | 'api_version' => ELEMENTOR_VERSION, |
| 882 | 880 | 'site_lang' => get_bloginfo( 'language' ), |