| @@ -872,11 +872,10 @@ | ||
| 872 | 872 | ); |
| 873 | 873 | } |
| 874 | 874 | |
| 875 | 875 | public function toggle_favorite_history_item( $id, $context = [] ) { |
| 876 | - $sanitized_id = str_replace( '%', '%%', $id ); | |
| 877 | 876 | return $this->ai_request( |
| 878 | - 'POST', sprintf( 'history/%s/favorite', $sanitized_id ), | |
| 877 | + 'POST', sprintf( 'history/%s/favorite', $id ), | |
| 879 | 878 | [ |
| 880 | 879 | 'context' => wp_json_encode( $context ), |
| 881 | 880 | 'api_version' => ELEMENTOR_VERSION, |
| 882 | 881 | 'site_lang' => get_bloginfo( 'language' ), |