PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 2.2.8
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v2.2.8
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 +1 -11 3.0.32.2.8 View file →
@@ -84,9 +84,9 @@
84 84 if ( ! empty( $errors ) ) {
85 85 return $this->error( 'login_error', $errors, 'login', 400 );
86 86 }
87 87
88 - $query = 'status, message, user{ id, name, first_name, last_name, display_name, email, profile_photo, joined, is_verified, api_key, plan, plan_expire_at, my_cloud{ limit, usages, last_pushed }, favourites{ id, type }, show_notice, reviews{ type, type_id, rating } }';
88 + $query = 'status, message, user{ id, name, first_name, last_name, display_name, email, profile_photo, joined, is_verified, api_key, plan, plan_expire_at, my_cloud{ limit, usages, last_pushed }, favourites{ id, type }, show_notice }';
89 89
90 90 $response = $this->http()->mutation(
91 91 $viaAPI ? 'connectWithApiKey' : 'connect',
92 92 $query,
@@ -125,16 +125,8 @@
125 125 unset( $response['user']['favourites'] );
126 126 $meta['favourites'] = $_favourites;
127 127 }
128 128
129 - if ( ! empty( $response['user']['reviews'] ) ) {
130 - $_reviews = $this->utils( 'helper' )->normalizeReviews( $response['user']['reviews'] );
131 - $this->utils( 'options' )->set( 'reviews', $_reviews );
132 -
133 - unset( $response['user']['reviews'] );
134 - $meta['reviews'] = $_reviews;
135 - }
136 -
137 129 $this->utils( 'options' )->set( 'user', $response['user'] );
138 130 $response['user']['meta'] = $this->user_meta( $meta );
139 131
140 132 return $response;
@@ -176,9 +168,8 @@
176 168 public function delete(){
177 169 $this->utils( 'options' )
178 170 ->remove( 'user' )
179 171 ->remove( 'favourites' )
180 - ->remove( 'reviews' )
181 172 ->remove( 'cloud_activity' )
182 173 ->remove( 'api_key' )
183 174 ->remove( 'global_login' )
184 175 ->remove( 'templates_in_clouds' );
@@ -227,9 +218,8 @@
227 218 'unlink_account' => self::utils( 'options' )->unlink_account(),
228 219 'is_globally_signed' => Login::is_globally_signed(),
229 220 'signed_as_global' => Login::signed_as_global(),
230 221 'starred' => self::utils( 'options' )->get( 'favourites' ),
231 - 'reviews' => self::utils( 'options' )->get( 'reviews' ),
232 222 'cloud_activity' => self::utils( 'options' )->get( 'cloud_activity' ),
233 223 'has_api' => rest_sanitize_boolean( self::utils( 'options' )->get( 'api_key' ) )
234 224 ];
235 225