|
@@ 4831-4838 (lines=8) @@
|
| 4828 |
|
return ( $a['sort'] < $b['sort'] ) ? -1 : 1; |
| 4829 |
|
} |
| 4830 |
|
|
| 4831 |
|
function sync_reindex_trigger() { |
| 4832 |
|
if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
| 4833 |
|
echo json_encode( $this->sync->reindex_trigger() ); |
| 4834 |
|
} else { |
| 4835 |
|
echo '{"status":"ERROR"}'; |
| 4836 |
|
} |
| 4837 |
|
exit; |
| 4838 |
|
} |
| 4839 |
|
|
| 4840 |
|
function sync_reindex_status(){ |
| 4841 |
|
if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
@@ 4840-4847 (lines=8) @@
|
| 4837 |
|
exit; |
| 4838 |
|
} |
| 4839 |
|
|
| 4840 |
|
function sync_reindex_status(){ |
| 4841 |
|
if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
| 4842 |
|
echo json_encode( $this->sync->reindex_status() ); |
| 4843 |
|
} else { |
| 4844 |
|
echo '{"status":"ERROR"}'; |
| 4845 |
|
} |
| 4846 |
|
exit; |
| 4847 |
|
} |
| 4848 |
|
|
| 4849 |
|
/* Client API */ |
| 4850 |
|
|