|
@@ 4870-4877 (lines=8) @@
|
| 4867 |
|
return ( $a['sort'] < $b['sort'] ) ? -1 : 1; |
| 4868 |
|
} |
| 4869 |
|
|
| 4870 |
|
function sync_reindex_trigger() { |
| 4871 |
|
if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
| 4872 |
|
echo json_encode( $this->sync->reindex_trigger() ); |
| 4873 |
|
} else { |
| 4874 |
|
echo '{"status":"ERROR"}'; |
| 4875 |
|
} |
| 4876 |
|
exit; |
| 4877 |
|
} |
| 4878 |
|
|
| 4879 |
|
function sync_reindex_status(){ |
| 4880 |
|
if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
@@ 4879-4886 (lines=8) @@
|
| 4876 |
|
exit; |
| 4877 |
|
} |
| 4878 |
|
|
| 4879 |
|
function sync_reindex_status(){ |
| 4880 |
|
if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
| 4881 |
|
echo json_encode( $this->sync->reindex_status() ); |
| 4882 |
|
} else { |
| 4883 |
|
echo '{"status":"ERROR"}'; |
| 4884 |
|
} |
| 4885 |
|
exit; |
| 4886 |
|
} |
| 4887 |
|
|
| 4888 |
|
/* Client API */ |
| 4889 |
|
|