@@ 4771-4778 (lines=8) @@ | ||
4768 | return ( $a['sort'] < $b['sort'] ) ? -1 : 1; |
|
4769 | } |
|
4770 | ||
4771 | function sync_reindex_trigger() { |
|
4772 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4773 | echo json_encode( $this->sync->reindex_trigger() ); |
|
4774 | } else { |
|
4775 | echo '{"status":"ERROR"}'; |
|
4776 | } |
|
4777 | exit; |
|
4778 | } |
|
4779 | ||
4780 | function sync_reindex_status(){ |
|
4781 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
@@ 4780-4787 (lines=8) @@ | ||
4777 | exit; |
|
4778 | } |
|
4779 | ||
4780 | function sync_reindex_status(){ |
|
4781 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4782 | echo json_encode( $this->sync->reindex_status() ); |
|
4783 | } else { |
|
4784 | echo '{"status":"ERROR"}'; |
|
4785 | } |
|
4786 | exit; |
|
4787 | } |
|
4788 | ||
4789 | /* Client API */ |
|
4790 |