@@ 4882-4889 (lines=8) @@ | ||
4879 | return ( $a['sort'] < $b['sort'] ) ? -1 : 1; |
|
4880 | } |
|
4881 | ||
4882 | function sync_reindex_trigger() { |
|
4883 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4884 | echo json_encode( $this->sync->reindex_trigger() ); |
|
4885 | } else { |
|
4886 | echo '{"status":"ERROR"}'; |
|
4887 | } |
|
4888 | exit; |
|
4889 | } |
|
4890 | ||
4891 | function sync_reindex_status(){ |
|
4892 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
@@ 4891-4898 (lines=8) @@ | ||
4888 | exit; |
|
4889 | } |
|
4890 | ||
4891 | function sync_reindex_status(){ |
|
4892 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4893 | echo json_encode( $this->sync->reindex_status() ); |
|
4894 | } else { |
|
4895 | echo '{"status":"ERROR"}'; |
|
4896 | } |
|
4897 | exit; |
|
4898 | } |
|
4899 | ||
4900 | function ajax_recheck_ssl() { |
|
4901 | check_ajax_referer( 'recheck-ssl', 'ajax-nonce' ); |