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