@@ 4311-4318 (lines=8) @@ | ||
4308 | return ( $a['sort'] < $b['sort'] ) ? -1 : 1; |
|
4309 | } |
|
4310 | ||
4311 | function sync_reindex_trigger() { |
|
4312 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4313 | echo json_encode( $this->sync->reindex_trigger() ); |
|
4314 | } else { |
|
4315 | echo '{"status":"ERROR"}'; |
|
4316 | } |
|
4317 | exit; |
|
4318 | } |
|
4319 | ||
4320 | function sync_reindex_status(){ |
|
4321 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
@@ 4320-4327 (lines=8) @@ | ||
4317 | exit; |
|
4318 | } |
|
4319 | ||
4320 | function sync_reindex_status(){ |
|
4321 | if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { |
|
4322 | echo json_encode( $this->sync->reindex_status() ); |
|
4323 | } else { |
|
4324 | echo '{"status":"ERROR"}'; |
|
4325 | } |
|
4326 | exit; |
|
4327 | } |
|
4328 | ||
4329 | function ajax_recheck_ssl() { |
|
4330 | check_ajax_referer( 'recheck-ssl', 'ajax-nonce' ); |