|  | @@ 444-445 (lines=2) @@ | 
                                                            
                                    | 441 |  | 		$media = false; | 
                                                            
                                    | 442 |  | 		if ( $args['from_thumbnail'] ) | 
                                                            
                                    | 443 |  | 			$media = self::from_thumbnail( $post_id, $args['width'], $args['height'] ); | 
                                                            
                                    | 444 |  | 		if ( !$media && $args['from_slideshow'] ) | 
                                                            
                                    | 445 |  | 			$media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); | 
                                                            
                                    | 446 |  | 		if ( !$media && $args['from_gallery'] ) | 
                                                            
                                    | 447 |  | 			$media = self::from_gallery( $post_id ); | 
                                                            
                                    | 448 |  | 		if ( !$media && $args['from_attachment'] ) | 
                                                                                
                                |  | @@ 448-449 (lines=2) @@ | 
                                                            
                                    | 445 |  | 			$media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); | 
                                                            
                                    | 446 |  | 		if ( !$media && $args['from_gallery'] ) | 
                                                            
                                    | 447 |  | 			$media = self::from_gallery( $post_id ); | 
                                                            
                                    | 448 |  | 		if ( !$media && $args['from_attachment'] ) | 
                                                            
                                    | 449 |  | 			$media = self::from_attachment( $post_id, $args['width'], $args['height'] ); | 
                                                            
                                    | 450 |  | 		if ( !$media && $args['from_html'] ) { | 
                                                            
                                    | 451 |  | 			if ( empty( $args['html_content'] ) ) | 
                                                            
                                    | 452 |  | 				$media = self::from_html( $post_id ); // Use the post_id, which will load the content |