@@ 4823-4830 (lines=8) @@ | ||
4820 | return ( $a['sort'] < $b['sort'] ) ? -1 : 1; |
|
4821 | } |
|
4822 | ||
4823 | function sync_reindex_trigger() { |
|
4824 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4825 | echo json_encode( $this->sync->reindex_trigger() ); |
|
4826 | } else { |
|
4827 | echo '{"status":"ERROR"}'; |
|
4828 | } |
|
4829 | exit; |
|
4830 | } |
|
4831 | ||
4832 | function sync_reindex_status(){ |
|
4833 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
@@ 4832-4839 (lines=8) @@ | ||
4829 | exit; |
|
4830 | } |
|
4831 | ||
4832 | function sync_reindex_status(){ |
|
4833 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4834 | echo json_encode( $this->sync->reindex_status() ); |
|
4835 | } else { |
|
4836 | echo '{"status":"ERROR"}'; |
|
4837 | } |
|
4838 | exit; |
|
4839 | } |
|
4840 | ||
4841 | /* Client API */ |
|
4842 |