PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.5.2
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.5.2
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 -13 3.7.03.5.2 View file →
@@ -36,12 +36,9 @@
36 36 public function google_auth_url() {
37 37 // Get redirect_to parameter from request if provided
38 38 $redirect_to = $this->get_param( 'redirect-to', '' );
39 39
40 - // Use client-provided current_url instead of HTTP_REFERER for reliability
41 - $current_url = $this->get_param( 'current_url', '' );
42 -
43 - $url = $this->http()->google_auth_url( $redirect_to, $current_url );
40 + $url = $this->http()->google_auth_url( $redirect_to );
44 41 return [
45 42 'status' => 'success',
46 43 'url' => $url
47 44 ];
@@ -228,12 +225,8 @@
228 225 if ( $global_user_id !== $this->utils( 'options' )->current_user_id() ) {
229 226 $global_user = $this->utils( 'options' )->get( 'user', false, $global_user_id );
230 227
231 228 if ( ! empty( $global_user ) ) {
232 - if ( is_array( $global_user ) ) {
233 - unset( $global_user['api_key'] );
234 - }
235 -
236 229 $global_user['meta'] = $this->user_meta();
237 230 }
238 231 }
239 232
@@ -247,13 +240,8 @@
247 240
248 241 $_user = ( new static )->utils( 'options' )->get( 'user', null );
249 242
250 243 if ( ! is_null( $_user ) ) {
251 - // Profiles stored before 3.7.1 may still carry the cloud API key.
252 - if ( is_array( $_user ) ) {
253 - unset( $_user['api_key'] );
254 - }
255 -
256 244 $_user['meta'] = self::get_instance()->user_meta();
257 245 }
258 246
259 247 if ( empty( $_user ) ) {