@@ 4647-4654 (lines=8) @@ | ||
4644 | return ( $a['sort'] < $b['sort'] ) ? -1 : 1; |
|
4645 | } |
|
4646 | ||
4647 | function sync_reindex_trigger() { |
|
4648 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4649 | echo json_encode( $this->sync->reindex_trigger() ); |
|
4650 | } else { |
|
4651 | echo '{"status":"ERROR"}'; |
|
4652 | } |
|
4653 | exit; |
|
4654 | } |
|
4655 | ||
4656 | function sync_reindex_status(){ |
|
4657 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
@@ 4656-4663 (lines=8) @@ | ||
4653 | exit; |
|
4654 | } |
|
4655 | ||
4656 | function sync_reindex_status(){ |
|
4657 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4658 | echo json_encode( $this->sync->reindex_status() ); |
|
4659 | } else { |
|
4660 | echo '{"status":"ERROR"}'; |
|
4661 | } |
|
4662 | exit; |
|
4663 | } |
|
4664 | ||
4665 | /* Client API */ |
|
4666 |