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