|
@@ 4785-4792 (lines=8) @@
|
| 4782 |
|
return ( $a['sort'] < $b['sort'] ) ? -1 : 1; |
| 4783 |
|
} |
| 4784 |
|
|
| 4785 |
|
function sync_reindex_trigger() { |
| 4786 |
|
if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
| 4787 |
|
echo json_encode( $this->sync->reindex_trigger() ); |
| 4788 |
|
} else { |
| 4789 |
|
echo '{"status":"ERROR"}'; |
| 4790 |
|
} |
| 4791 |
|
exit; |
| 4792 |
|
} |
| 4793 |
|
|
| 4794 |
|
function sync_reindex_status(){ |
| 4795 |
|
if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
@@ 4794-4801 (lines=8) @@
|
| 4791 |
|
exit; |
| 4792 |
|
} |
| 4793 |
|
|
| 4794 |
|
function sync_reindex_status(){ |
| 4795 |
|
if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
| 4796 |
|
echo json_encode( $this->sync->reindex_status() ); |
| 4797 |
|
} else { |
| 4798 |
|
echo '{"status":"ERROR"}'; |
| 4799 |
|
} |
| 4800 |
|
exit; |
| 4801 |
|
} |
| 4802 |
|
|
| 4803 |
|
/* Client API */ |
| 4804 |
|
|