PluginProbe
Elementor Website Builder – more than just a page builder / 3.31.2
Elementor Website Builder – more than just a page builder v3.31.2
4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 All 455 releases
← All changes | modules/cloud-library/connect/cloud-library.php +4 -0 3.31.1 → 3.31.2 View file →
@@ -335,8 +335,12 @@
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 +
339 343 return $this->http_request( 'GET', 'quota', [], [
340 344 'return_type' => static::HTTP_RETURN_TYPE_ARRAY,
341 345 ] );
342 346 }