| @@ 421-431 (lines=11) @@ | ||
| 418 | /** |
|
| 419 | * Saves the queue to the option. |
|
| 420 | */ |
|
| 421 | public function remove_from_queue( $id ) { |
|
| 422 | if ( ! empty( $this->queued_imports ) ) { |
|
| 423 | // @codingStandardsIgnoreLine |
|
| 424 | if ( ( $key = array_search( $id, $this->queued_imports ) ) !== false ) { |
|
| 425 | unset( $this->queued_imports[ $key ] ); |
|
| 426 | ||
| 427 | delete_option( 'wetu_importer_que' ); |
|
| 428 | update_option( 'wetu_importer_que',$this->queued_imports ); |
|
| 429 | } |
|
| 430 | } |
|
| 431 | } |
|
| 432 | ||
| 433 | /** |
|
| 434 | * Connect to wetu |
|
| @@ 531-541 (lines=11) @@ | ||
| 528 | /** |
|
| 529 | * Saves the queue to the option. |
|
| 530 | */ |
|
| 531 | public function remove_from_queue( $id ) { |
|
| 532 | if ( ! empty( $this->queued_imports ) ) { |
|
| 533 | // @codingStandardsIgnoreLine |
|
| 534 | if ( ( $key = array_search( $id, $this->queued_imports ) ) !== false ) { |
|
| 535 | unset( $this->queued_imports[ $key ] ); |
|
| 536 | ||
| 537 | delete_option( 'wetu_importer_que' ); |
|
| 538 | update_option( 'wetu_importer_que',$this->queued_imports ); |
|
| 539 | } |
|
| 540 | } |
|
| 541 | } |
|
| 542 | ||
| 543 | /** |
|
| 544 | * Connect to wetu |
|