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