PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.2.4
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.2.4
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | includes/API/Login.php +6 -5 3.0.33.2.4 View file →
@@ -180,11 +180,12 @@
180 180 ->remove( 'reviews' )
181 181 ->remove( 'cloud_activity' )
182 182 ->remove( 'api_key' )
183 183 ->remove( 'global_login' )
184 + ->remove( 'total_download_counts' )
184 185 ->remove( 'templates_in_clouds' );
185 186
186 - if ( $this->utils( 'options' )->whoami() === 'global' ) {
187 + if ( $this->utils( 'options' )->who_am_i() === 'global' ) {
187 188 $this->utils( 'options' )->remove_global_login();
188 189 }
189 190
190 191 $global_user_id = $this->utils( 'options' )->is_global();
@@ -200,9 +201,9 @@
200 201
201 202 return $global_user;
202 203 }
203 204
204 - public static function is_signed() {
205 + public static function is_signed(): array {
205 206 $_response = [
206 207 'status' => 'success'
207 208 ];
208 209
@@ -220,9 +221,9 @@
220 221
221 222 return $_response;
222 223 }
223 224
224 - public function user_meta( $meta = [] ) {
225 + public function user_meta( $meta = [] ): array {
225 226 $_meta = [
226 227 'link_account' => self::utils( 'options' )->link_account(),
227 228 'unlink_account' => self::utils( 'options' )->unlink_account(),
228 229 'is_globally_signed' => Login::is_globally_signed(),
@@ -235,12 +236,12 @@
235 236
236 237 return array_merge( $_meta, $meta );
237 238 }
238 239
239 - public static function is_globally_signed() {
240 + public static function is_globally_signed(): bool {
240 241 return rest_sanitize_boolean( ( new static )->utils( 'options' )->is_globally_signed() );
241 242 }
242 243
243 - public static function signed_as_global() {
244 + public static function signed_as_global(): bool {
244 245 return rest_sanitize_boolean( ( new static )->utils( 'options' )->signed_as_global() );
245 246 }
246 247 }