@@ 4893-4900 (lines=8) @@ | ||
4890 | return ( $a['sort'] < $b['sort'] ) ? -1 : 1; |
|
4891 | } |
|
4892 | ||
4893 | function sync_reindex_trigger() { |
|
4894 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4895 | echo json_encode( $this->sync->reindex_trigger() ); |
|
4896 | } else { |
|
4897 | echo '{"status":"ERROR"}'; |
|
4898 | } |
|
4899 | exit; |
|
4900 | } |
|
4901 | ||
4902 | function sync_reindex_status(){ |
|
4903 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
@@ 4902-4909 (lines=8) @@ | ||
4899 | exit; |
|
4900 | } |
|
4901 | ||
4902 | function sync_reindex_status(){ |
|
4903 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4904 | echo json_encode( $this->sync->reindex_status() ); |
|
4905 | } else { |
|
4906 | echo '{"status":"ERROR"}'; |
|
4907 | } |
|
4908 | exit; |
|
4909 | } |
|
4910 | ||
4911 | function ajax_recheck_ssl() { |
|
4912 | check_ajax_referer( 'recheck-ssl', 'ajax-nonce' ); |