| 
                                
                                    @@ 630-635 (lines=6) @@
                                 | 
                            
                                                            
                                    | 627 | 
                                     | 
                                    			$media = self::from_gallery( $post_id );  | 
                                
                                                            
                                    | 628 | 
                                     | 
                                    		if ( !$media && $args['from_attachment'] )  | 
                                
                                                            
                                    | 629 | 
                                     | 
                                    			$media = self::from_attachment( $post_id, $args['width'], $args['height'] );  | 
                                
                                                            
                                    | 630 | 
                                     | 
                                    		if ( ! $media && $args['from_blocks'] ) { | 
                                
                                                            
                                    | 631 | 
                                     | 
                                    			if ( empty( $args['html_content'] ) )  | 
                                
                                                            
                                    | 632 | 
                                     | 
                                    				$media = self::from_blocks( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content  | 
                                
                                                            
                                    | 633 | 
                                     | 
                                    			else  | 
                                
                                                            
                                    | 634 | 
                                     | 
                                    				$media = self::from_blocks( $args['html_content'], $args['width'], $args['height'] ); // If html_content is provided, use that  | 
                                
                                                            
                                    | 635 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 636 | 
                                     | 
                                    		if ( !$media && $args['from_html'] ) { | 
                                
                                                            
                                    | 637 | 
                                     | 
                                    			if ( empty( $args['html_content'] ) )  | 
                                
                                                            
                                    | 638 | 
                                     | 
                                    				$media = self::from_html( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content  | 
                                
                                                                                
                                 | 
                                
                                    @@ 636-641 (lines=6) @@
                                 | 
                            
                                                            
                                    | 633 | 
                                     | 
                                    			else  | 
                                
                                                            
                                    | 634 | 
                                     | 
                                    				$media = self::from_blocks( $args['html_content'], $args['width'], $args['height'] ); // If html_content is provided, use that  | 
                                
                                                            
                                    | 635 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 636 | 
                                     | 
                                    		if ( !$media && $args['from_html'] ) { | 
                                
                                                            
                                    | 637 | 
                                     | 
                                    			if ( empty( $args['html_content'] ) )  | 
                                
                                                            
                                    | 638 | 
                                     | 
                                    				$media = self::from_html( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content  | 
                                
                                                            
                                    | 639 | 
                                     | 
                                    			else  | 
                                
                                                            
                                    | 640 | 
                                     | 
                                    				$media = self::from_html( $args['html_content'], $args['width'], $args['height'] ); // If html_content is provided, use that  | 
                                
                                                            
                                    | 641 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 642 | 
                                     | 
                                     | 
                                
                                                            
                                    | 643 | 
                                     | 
                                    		if ( !$media && $args['fallback_to_avatars'] ) { | 
                                
                                                            
                                    | 644 | 
                                     | 
                                    			$media = self::from_blavatar( $post_id, $args['avatar_size'] );  |