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