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