@@ 4757-4764 (lines=8) @@ | ||
4754 | return ( $a['sort'] < $b['sort'] ) ? -1 : 1; |
|
4755 | } |
|
4756 | ||
4757 | function sync_reindex_trigger() { |
|
4758 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4759 | echo json_encode( $this->sync->reindex_trigger() ); |
|
4760 | } else { |
|
4761 | echo '{"status":"ERROR"}'; |
|
4762 | } |
|
4763 | exit; |
|
4764 | } |
|
4765 | ||
4766 | function sync_reindex_status(){ |
|
4767 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
@@ 4766-4773 (lines=8) @@ | ||
4763 | exit; |
|
4764 | } |
|
4765 | ||
4766 | function sync_reindex_status(){ |
|
4767 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4768 | echo json_encode( $this->sync->reindex_status() ); |
|
4769 | } else { |
|
4770 | echo '{"status":"ERROR"}'; |
|
4771 | } |
|
4772 | exit; |
|
4773 | } |
|
4774 | ||
4775 | /* Client API */ |
|
4776 |