|  | @@ 4787-4794 (lines=8) @@ | 
                                                            
                                    | 4784 |  | 		return ( $a['sort'] < $b['sort'] ) ? -1 : 1; | 
                                                            
                                    | 4785 |  | 	} | 
                                                            
                                    | 4786 |  |  | 
                                                            
                                    | 4787 |  | 	function sync_reindex_trigger() { | 
                                                            
                                    | 4788 |  | 		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { | 
                                                            
                                    | 4789 |  | 			echo json_encode( $this->sync->reindex_trigger() ); | 
                                                            
                                    | 4790 |  | 		} else { | 
                                                            
                                    | 4791 |  | 			echo '{"status":"ERROR"}'; | 
                                                            
                                    | 4792 |  | 		} | 
                                                            
                                    | 4793 |  | 		exit; | 
                                                            
                                    | 4794 |  | 	} | 
                                                            
                                    | 4795 |  |  | 
                                                            
                                    | 4796 |  | 	function sync_reindex_status(){ | 
                                                            
                                    | 4797 |  | 		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { | 
                                                                                
                                |  | @@ 4796-4803 (lines=8) @@ | 
                                                            
                                    | 4793 |  | 		exit; | 
                                                            
                                    | 4794 |  | 	} | 
                                                            
                                    | 4795 |  |  | 
                                                            
                                    | 4796 |  | 	function sync_reindex_status(){ | 
                                                            
                                    | 4797 |  | 		if ( $this->current_user_is_connection_owner() && current_user_can( 'manage_options' ) ) { | 
                                                            
                                    | 4798 |  | 			echo json_encode( $this->sync->reindex_status() ); | 
                                                            
                                    | 4799 |  | 		} else { | 
                                                            
                                    | 4800 |  | 			echo '{"status":"ERROR"}'; | 
                                                            
                                    | 4801 |  | 		} | 
                                                            
                                    | 4802 |  | 		exit; | 
                                                            
                                    | 4803 |  | 	} | 
                                                            
                                    | 4804 |  |  | 
                                                            
                                    | 4805 |  | /* Client API */ | 
                                                            
                                    | 4806 |  |  |