@@ 4811-4818 (lines=8) @@ | ||
4808 | return ( $a['sort'] < $b['sort'] ) ? -1 : 1; |
|
4809 | } |
|
4810 | ||
4811 | function sync_reindex_trigger() { |
|
4812 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4813 | echo json_encode( $this->sync->reindex_trigger() ); |
|
4814 | } else { |
|
4815 | echo '{"status":"ERROR"}'; |
|
4816 | } |
|
4817 | exit; |
|
4818 | } |
|
4819 | ||
4820 | function sync_reindex_status(){ |
|
4821 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
@@ 4820-4827 (lines=8) @@ | ||
4817 | exit; |
|
4818 | } |
|
4819 | ||
4820 | function sync_reindex_status(){ |
|
4821 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4822 | echo json_encode( $this->sync->reindex_status() ); |
|
4823 | } else { |
|
4824 | echo '{"status":"ERROR"}'; |
|
4825 | } |
|
4826 | exit; |
|
4827 | } |
|
4828 | ||
4829 | /* Client API */ |
|
4830 |