sal/class.json-api-site-base.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 277-282 (lines=6) @@
                                 | 
                            
                                                            
                                    | 274 | 
                                     | 
                                    			return false;  | 
                                
                                                            
                                    | 275 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 276 | 
                                     | 
                                     | 
                                
                                                            
                                    | 277 | 
                                     | 
                                    		if ( 'inherit' === $post->post_status ) { | 
                                
                                                            
                                    | 278 | 
                                     | 
                                    			$parent_post = get_post( $post->post_parent );  | 
                                
                                                            
                                    | 279 | 
                                     | 
                                    			$post_status_obj = get_post_status_object( $parent_post->post_status );  | 
                                
                                                            
                                    | 280 | 
                                     | 
                                    		} else { | 
                                
                                                            
                                    | 281 | 
                                     | 
                                    			$post_status_obj = get_post_status_object( $post->post_status );  | 
                                
                                                            
                                    | 282 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 283 | 
                                     | 
                                     | 
                                
                                                            
                                    | 284 | 
                                     | 
                                    		$authorized = (  | 
                                
                                                            
                                    | 285 | 
                                     | 
                                    			$post_status_obj->public ||  | 
                                
                                                                        
                 
                                                            
                    
class.json-api-endpoints.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 1068-1073 (lines=6) @@
                                 | 
                            
                                                            
                                    | 1065 | 
                                     | 
                                    			return false;  | 
                                
                                                            
                                    | 1066 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 1067 | 
                                     | 
                                     | 
                                
                                                            
                                    | 1068 | 
                                     | 
                                    		if ( 'inherit' === $post->post_status ) { | 
                                
                                                            
                                    | 1069 | 
                                     | 
                                    			$parent_post     = get_post( $post->post_parent );  | 
                                
                                                            
                                    | 1070 | 
                                     | 
                                    			$post_status_obj = get_post_status_object( $parent_post->post_status );  | 
                                
                                                            
                                    | 1071 | 
                                     | 
                                    		} else { | 
                                
                                                            
                                    | 1072 | 
                                     | 
                                    			$post_status_obj = get_post_status_object( $post->post_status );  | 
                                
                                                            
                                    | 1073 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 1074 | 
                                     | 
                                     | 
                                
                                                            
                                    | 1075 | 
                                     | 
                                    		if ( ! $post_status_obj->public ) { | 
                                
                                                            
                                    | 1076 | 
                                     | 
                                    			if ( is_user_logged_in() ) { |