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