@@ 4781-4788 (lines=8) @@ | ||
4778 | return ( $a['sort'] < $b['sort'] ) ? -1 : 1; |
|
4779 | } |
|
4780 | ||
4781 | function sync_reindex_trigger() { |
|
4782 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4783 | echo json_encode( $this->sync->reindex_trigger() ); |
|
4784 | } else { |
|
4785 | echo '{"status":"ERROR"}'; |
|
4786 | } |
|
4787 | exit; |
|
4788 | } |
|
4789 | ||
4790 | function sync_reindex_status(){ |
|
4791 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
@@ 4790-4797 (lines=8) @@ | ||
4787 | exit; |
|
4788 | } |
|
4789 | ||
4790 | function sync_reindex_status(){ |
|
4791 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4792 | echo json_encode( $this->sync->reindex_status() ); |
|
4793 | } else { |
|
4794 | echo '{"status":"ERROR"}'; |
|
4795 | } |
|
4796 | exit; |
|
4797 | } |
|
4798 | ||
4799 | /* Client API */ |
|
4800 |