PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / 1.7.7
Image Optimizer – Compress Images and Convert to WebP or AVIF v1.7.7
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
← All changes | modules/connect-manager/components/legacy-connect.php +8 -4 1.5.3 → 1.7.7 View file →
@@ -17,17 +17,17 @@
17 17 }
18 18
19 19 class Legacy_Connect implements Connect_Interface {
20 20
21 - public function is_connected() : bool {
21 + public function is_connected(): bool {
22 22 return Connect::is_connected();
23 23 }
24 24
25 - public function is_activated() : bool {
25 + public function is_activated(): bool {
26 26 return Connect::is_activated();
27 27 }
28 28
29 - public function is_valid_home_url() : bool {
29 + public function is_valid_home_url(): bool {
30 30 return true;
31 31 }
32 32
33 33 public function get_connect_status() {
@@ -41,9 +41,9 @@
41 41 public function update_usage_data( $new_usage_data ): void {
42 42 Connect::update_usage_data( $new_usage_data );
43 43 }
44 44
45 - public function get_activation_state() : string {
45 + public function get_activation_state(): string {
46 46 return Data::get_activation_state();
47 47 }
48 48
49 49 public function get_access_token() {
@@ -51,8 +51,12 @@
51 51 }
52 52
53 53 public function get_client_id(): string {
54 54 return Data::get_client_id();
55 + }
56 +
57 + public function get_client_secret(): string {
58 + return Data::get_client_secret();
55 59 }
56 60
57 61 public function images_left(): int {
58 62 return Data::images_left();