@@ 4854-4861 (lines=8) @@ | ||
4851 | return ( $a['sort'] < $b['sort'] ) ? -1 : 1; |
|
4852 | } |
|
4853 | ||
4854 | function sync_reindex_trigger() { |
|
4855 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4856 | echo json_encode( $this->sync->reindex_trigger() ); |
|
4857 | } else { |
|
4858 | echo '{"status":"ERROR"}'; |
|
4859 | } |
|
4860 | exit; |
|
4861 | } |
|
4862 | ||
4863 | function sync_reindex_status(){ |
|
4864 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
@@ 4863-4870 (lines=8) @@ | ||
4860 | exit; |
|
4861 | } |
|
4862 | ||
4863 | function sync_reindex_status(){ |
|
4864 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4865 | echo json_encode( $this->sync->reindex_status() ); |
|
4866 | } else { |
|
4867 | echo '{"status":"ERROR"}'; |
|
4868 | } |
|
4869 | exit; |
|
4870 | } |
|
4871 | ||
4872 | /* Client API */ |
|
4873 |