← All changes
|
modules/cloud-library/connect/cloud-library.php
+0
-4
4.1.0-dev2
→
3.30.1
View file →
| @@ -335,12 +335,8 @@ | ||
| 335 | 335 | /** |
| 336 | 336 | * @return array|\WP_Error |
| 337 | 337 | */ |
| 338 | 338 | public function get_quota() { |
| 339 | - if ( ! $this->is_connected() ) { | |
| 340 | - return new \WP_Error( 'not_connected', esc_html__( 'Not connected', 'elementor' ) ); | |
| 341 | - } | |
| 342 | - | |
| 343 | 339 | return $this->http_request( 'GET', 'quota', [], [ |
| 344 | 340 | 'return_type' => static::HTTP_RETURN_TYPE_ARRAY, |
| 345 | 341 | ] ); |
| 346 | 342 | } |