| @@ -17,10 +17,8 @@ | ||
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | class Module extends Module_Base { |
| 20 | 20 | |
| 21 | - const DEFAULT_SUBJECT = 'Editor Feedback'; | |
| 22 | - | |
| 23 | 21 | public function __construct() { |
| 24 | 22 | add_action( 'rest_api_init', fn() => self::register_routes() ); |
| 25 | 23 | } |
| 26 | 24 | |
| @@ -34,14 +32,13 @@ | ||
| 34 | 32 | |
| 35 | 33 | protected function handle_submit( $request, $additional_cookies = [] ) { |
| 36 | 34 | $user_meta = get_user_meta( get_current_user_id(), 'wp_elementor_connect_common_data' ); |
| 37 | 35 | $app = Plugin::$instance->common->get_component( 'connect' )->get_app( 'feedback' ); |
| 38 | - $subject = sanitize_text_field( $request->get_param( 'subject' ) ); | |
| 39 | 36 | $body = [ |
| 40 | 37 | 'title' => 'Editor Feedback', |
| 41 | 38 | 'description' => $request->get_param( 'description' ), |
| 42 | 39 | 'product' => 'EDITOR', |
| 43 | - 'subject' => $subject ? $subject : self::DEFAULT_SUBJECT, | |
| 40 | + 'subject' => 'Editor Feedback', | |
| 44 | 41 | ]; |
| 45 | 42 | |
| 46 | 43 | $response = $app->submit( $body ); |
| 47 | 44 | $response_code = $response['response']['code']; |