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