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