| @@ -264,9 +264,8 @@ | ||
| 264 | 264 | $name = $request->get_param( 'name' ); |
| 265 | 265 | $query = $request->get_param( 'query' ); |
| 266 | 266 | $is_visual = '1' === $request->get_param( 'is_visual' ); |
| 267 | 267 | $vqb = $request->get_param( 'vqb' ); |
| 268 | - WPDA::wpda_log_wp_error( $vqb ); | |
| 269 | 268 | $old_name = $request->get_param( 'old_name' ) ?? ''; |
| 270 | 269 | $insert = '1' === $request->get_param( 'insert' ); |
| 271 | 270 | $params = $request->get_param( 'params' ); |
| 272 | 271 | $qb = new WPDA_Query_Builder(); |
| @@ -410,31 +409,19 @@ | ||
| 410 | 409 | } |
| 411 | 410 | } |
| 412 | 411 | |
| 413 | 412 | public function cron_schedules( $request ) { |
| 414 | - if ( !$this->current_user_can_access() ) { | |
| 415 | - return $this->unauthorized(); | |
| 416 | - } | |
| 417 | - if ( !$this->current_user_token_valid( $request ) ) { | |
| 418 | - return $this->invalid_nonce(); | |
| 419 | - } | |
| 413 | + // This feature is implemented in the premium version | |
| 414 | + return $this->unauthorized(); | |
| 420 | 415 | } |
| 421 | 416 | |
| 422 | 417 | public function cron_add( $request ) { |
| 423 | - if ( !$this->current_user_can_access() ) { | |
| 424 | - return $this->unauthorized(); | |
| 425 | - } | |
| 426 | - if ( !$this->current_user_token_valid( $request ) ) { | |
| 427 | - return $this->invalid_nonce(); | |
| 428 | - } | |
| 418 | + // This feature is implemented in the premium version | |
| 419 | + return $this->unauthorized(); | |
| 429 | 420 | } |
| 430 | 421 | |
| 431 | 422 | public function cron_delete( $request ) { |
| 432 | - if ( !$this->current_user_can_access() ) { | |
| 433 | - return $this->unauthorized(); | |
| 434 | - } | |
| 435 | - if ( !$this->current_user_token_valid( $request ) ) { | |
| 436 | - return $this->invalid_nonce(); | |
| 437 | - } | |
| 423 | + // This feature is implemented in the premium version | |
| 424 | + return $this->unauthorized(); | |
| 438 | 425 | } |
| 439 | 426 | |
| 440 | 427 | } |