| 
                                
                                    @@ 650-655 (lines=6) @@
                                 | 
                            
                                                            
                                    | 647 | 
                                     | 
                                    		if ( ! $media && $args['from_attachment'] ) { | 
                                
                                                            
                                    | 648 | 
                                     | 
                                    			$media = self::from_attachment( $post_id, $args['width'], $args['height'] );  | 
                                
                                                            
                                    | 649 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 650 | 
                                     | 
                                    		if ( ! $media && $args['from_blocks'] ) { | 
                                
                                                            
                                    | 651 | 
                                     | 
                                    			if ( empty( $args['html_content'] ) ) { | 
                                
                                                            
                                    | 652 | 
                                     | 
                                    				$media = self::from_blocks( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content  | 
                                
                                                            
                                    | 653 | 
                                     | 
                                    			} else { | 
                                
                                                            
                                    | 654 | 
                                     | 
                                    				$media = self::from_blocks( $args['html_content'], $args['width'], $args['height'] ); // If html_content is provided, use that  | 
                                
                                                            
                                    | 655 | 
                                     | 
                                    			}  | 
                                
                                                            
                                    | 656 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 657 | 
                                     | 
                                    		if ( ! $media && $args['from_html'] ) { | 
                                
                                                            
                                    | 658 | 
                                     | 
                                    			if ( empty( $args['html_content'] ) ) { | 
                                
                                                                                
                                 | 
                                
                                    @@ 657-662 (lines=6) @@
                                 | 
                            
                                                            
                                    | 654 | 
                                     | 
                                    				$media = self::from_blocks( $args['html_content'], $args['width'], $args['height'] ); // If html_content is provided, use that  | 
                                
                                                            
                                    | 655 | 
                                     | 
                                    			}  | 
                                
                                                            
                                    | 656 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 657 | 
                                     | 
                                    		if ( ! $media && $args['from_html'] ) { | 
                                
                                                            
                                    | 658 | 
                                     | 
                                    			if ( empty( $args['html_content'] ) ) { | 
                                
                                                            
                                    | 659 | 
                                     | 
                                    				$media = self::from_html( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content  | 
                                
                                                            
                                    | 660 | 
                                     | 
                                    			} else { | 
                                
                                                            
                                    | 661 | 
                                     | 
                                    				$media = self::from_html( $args['html_content'], $args['width'], $args['height'] ); // If html_content is provided, use that  | 
                                
                                                            
                                    | 662 | 
                                     | 
                                    			}  | 
                                
                                                            
                                    | 663 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 664 | 
                                     | 
                                     | 
                                
                                                            
                                    | 665 | 
                                     | 
                                    		if ( ! $media && $args['fallback_to_avatars'] ) { |