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