json-endpoints/class.wpcom-json-api-post-endpoint.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 346-354 (lines=9) @@ | 
                                                            
                                    | 343 |  | 				$response[$key] = null; | 
                                                            
                                    | 344 |  |  | 
                                                            
                                    | 345 |  | 				$thumb_id = get_post_thumbnail_id( $post->ID ); | 
                                                            
                                    | 346 |  | 				if ( ! empty( $thumb_id ) ) { | 
                                                            
                                    | 347 |  | 					$attachment = get_post( $thumb_id ); | 
                                                            
                                    | 348 |  | 					if ( ! empty( $attachment ) ) | 
                                                            
                                    | 349 |  | 						$featured_image_object = $this->get_attachment( $attachment ); | 
                                                            
                                    | 350 |  |  | 
                                                            
                                    | 351 |  | 					if ( ! empty( $featured_image_object ) ) { | 
                                                            
                                    | 352 |  | 						$response[$key] = (object) $featured_image_object; | 
                                                            
                                    | 353 |  | 					} | 
                                                            
                                    | 354 |  | 				} | 
                                                            
                                    | 355 |  | 				break; | 
                                                            
                                    | 356 |  | 			case 'format' : | 
                                                            
                                    | 357 |  | 				$response[$key] = (string) get_post_format( $post->ID ); | 
                                                                        
                 
                                                            
                    
sal/class.json-api-post-base.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 232-240 (lines=9) @@ | 
                                                            
                                    | 229 |  |  | 
                                                            
                                    | 230 |  | 		$thumb_id = get_post_thumbnail_id( $this->post->ID ); | 
                                                            
                                    | 231 |  |  | 
                                                            
                                    | 232 |  | 		if ( ! empty( $thumb_id ) ) { | 
                                                            
                                    | 233 |  | 			$attachment = get_post( $thumb_id ); | 
                                                            
                                    | 234 |  | 			if ( ! empty( $attachment ) ) | 
                                                            
                                    | 235 |  | 				$featured_image_object = $this->get_attachment( $attachment ); | 
                                                            
                                    | 236 |  |  | 
                                                            
                                    | 237 |  | 			if ( ! empty( $featured_image_object ) ) { | 
                                                            
                                    | 238 |  | 				$thumb = (object) $featured_image_object; | 
                                                            
                                    | 239 |  | 			} | 
                                                            
                                    | 240 |  | 		} | 
                                                            
                                    | 241 |  |  | 
                                                            
                                    | 242 |  | 		return $thumb; | 
                                                            
                                    | 243 |  | 	} |