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