PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 2.0.1
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v2.0.1
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/API.php +3 -4 3.0.42.0.1 View file →
@@ -137,10 +137,10 @@
137 137 return $this->permission_error( '', $_route );
138 138 }
139 139
140 140 /**
141 - * @param $message
142 - * @param $endpoint
141 + * @param $route
142 + * @param $request
143 143 *
144 144 * @return WP_Error
145 145 */
146 146 protected function permission_error( $message, $endpoint = '') {
@@ -159,13 +159,12 @@
159 159 // Delete user logged meta data
160 160 $this->utils('options')
161 161 ->remove('user')
162 162 ->remove('favourites')
163 - ->remove('reviews')
164 163 ->remove('cloud_activity')
165 164 ->remove('api_key');
166 165
167 - if( $this->utils('options')->who_am_i() === 'global' ) {
166 + if( $this->utils('options')->whoami() === 'global' ) {
168 167 $this->utils('options')->remove_global_login();
169 168 }
170 169
171 170 return new WP_Error( 'invalid_api_key', $message, $_additional_data );