PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.0.2
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.0.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/API.php +1 -2 3.1.13.0.2 View file →
@@ -128,9 +128,8 @@
128 128 public function permission_check( WP_REST_Request $request ) {
129 129 $this->request = $request;
130 130 $this->api_key = $this->utils('options')->get( 'api_key' );
131 131
132 -
133 132 if ( ! empty( $this->api_key ) ) {
134 133 return true;
135 134 }
136 135
@@ -164,9 +163,9 @@
164 163 ->remove('reviews')
165 164 ->remove('cloud_activity')
166 165 ->remove('api_key');
167 166
168 - if( $this->utils('options')->who_am_i() === 'global' ) {
167 + if( $this->utils('options')->whoami() === 'global' ) {
169 168 $this->utils('options')->remove_global_login();
170 169 }
171 170
172 171 return new WP_Error( 'invalid_api_key', $message, $_additional_data );