| @@ -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' ), |
| @@ -786,9 +785,9 @@ | ||
| 786 | 785 | if ( ElementorUtils::has_pro() ) { |
| 787 | 786 | $context['features']['subscriptions'] = [ 'Pro' ]; |
| 788 | 787 | } |
| 789 | 788 | |
| 790 | - if ( Plugin::instance()->experiments->is_feature_active( 'container' ) ) { | |
| 789 | + if ( Plugin::instance()->experiments->get_active_features()['nested-elements'] ) { | |
| 791 | 790 | $context['features']['supportedFeatures'][] = 'Nested'; |
| 792 | 791 | } |
| 793 | 792 | |
| 794 | 793 | if ( Plugin::instance()->experiments->get_active_features()['mega-menu'] ) { |
| @@ -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' ), |