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