| @@ -72,10 +72,9 @@ | ||
| 72 | 72 | |
| 73 | 73 | if( is_wp_error( $response ) ) { |
| 74 | 74 | return $this->error( |
| 75 | 75 | 'invalid_response', $response->get_error_message(), |
| 76 | - 'clouds/usage', 404, | |
| 77 | - $response->get_error_data() | |
| 76 | + 'clouds/usage', 404 | |
| 78 | 77 | ); |
| 79 | 78 | } |
| 80 | 79 | |
| 81 | 80 | return $response; |
| @@ -107,12 +106,8 @@ | ||
| 107 | 106 | $name = $this->get_param( 'name' ); |
| 108 | 107 | $file_type = $this->get_param( 'platform', 'elementor' ); |
| 109 | 108 | $id = $this->get_param( 'id', 0, 'intval' ); |
| 110 | 109 | $workspace_id = $this->get_param( 'workspace_id', 0, 'intval' ); |
| 111 | - | |
| 112 | - if( $file_type === 'elementor' && ! class_exists('Elementor\TemplateLibrary\Source_Local') ) { | |
| 113 | - return $this->error( 'required_elementor', __("Missing required dependency Elementor, please install before trying again.", "templately"), 'clouds/upload', 400 ); | |
| 114 | - } | |
| 115 | 110 | |
| 116 | 111 | if( empty( $file_content ) ) { |
| 117 | 112 | /** |
| 118 | 113 | * @var Platform $platform |