|
@@ 4734-4741 (lines=8) @@
|
| 4731 |
|
return ( $a['sort'] < $b['sort'] ) ? -1 : 1; |
| 4732 |
|
} |
| 4733 |
|
|
| 4734 |
|
function sync_reindex_trigger() { |
| 4735 |
|
if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
| 4736 |
|
echo json_encode( $this->sync->reindex_trigger() ); |
| 4737 |
|
} else { |
| 4738 |
|
echo '{"status":"ERROR"}'; |
| 4739 |
|
} |
| 4740 |
|
exit; |
| 4741 |
|
} |
| 4742 |
|
|
| 4743 |
|
function sync_reindex_status(){ |
| 4744 |
|
if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
@@ 4743-4750 (lines=8) @@
|
| 4740 |
|
exit; |
| 4741 |
|
} |
| 4742 |
|
|
| 4743 |
|
function sync_reindex_status(){ |
| 4744 |
|
if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
| 4745 |
|
echo json_encode( $this->sync->reindex_status() ); |
| 4746 |
|
} else { |
| 4747 |
|
echo '{"status":"ERROR"}'; |
| 4748 |
|
} |
| 4749 |
|
exit; |
| 4750 |
|
} |
| 4751 |
|
|
| 4752 |
|
/* Client API */ |
| 4753 |
|
|