← All changes
|
modules/connect-manager/components/legacy-connect.php
+11
-3
1.4.1
→
1.7.7
View file →
| @@ -17,16 +17,20 @@ | ||
| 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 { | |
| 30 | + return true; | |
| 31 | + } | |
| 32 | + | |
| 29 | 33 | public function get_connect_status() { |
| 30 | 34 | return Connect::get_connect_status(); |
| 31 | 35 | } |
| 32 | 36 | |
| @@ -37,9 +41,9 @@ | ||
| 37 | 41 | public function update_usage_data( $new_usage_data ): void { |
| 38 | 42 | Connect::update_usage_data( $new_usage_data ); |
| 39 | 43 | } |
| 40 | 44 | |
| 41 | - public function get_activation_state() : string { | |
| 45 | + public function get_activation_state(): string { | |
| 42 | 46 | return Data::get_activation_state(); |
| 43 | 47 | } |
| 44 | 48 | |
| 45 | 49 | public function get_access_token() { |
| @@ -47,8 +51,12 @@ | ||
| 47 | 51 | } |
| 48 | 52 | |
| 49 | 53 | public function get_client_id(): string { |
| 50 | 54 | return Data::get_client_id(); |
| 55 | + } | |
| 56 | + | |
| 57 | + public function get_client_secret(): string { | |
| 58 | + return Data::get_client_secret(); | |
| 51 | 59 | } |
| 52 | 60 | |
| 53 | 61 | public function images_left(): int { |
| 54 | 62 | return Data::images_left(); |