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