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