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