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