Make WordPress Core

Ticket #47687: 47687.patch

File 47687.patch, 869 bytes (added by wpboss, 4 years ago)

I have included alt tag text in the WordPress editor for the Gallery images

  • wp-includes/media-template.php

     
    13611361                                        <dl class="gallery-item">
    13621362                                                <dt class="gallery-icon">
    13631363                                                        <# if ( attachment.thumbnail ) { #>
    1364                                                                 <img src="{{ attachment.thumbnail.url }}" width="{{ attachment.thumbnail.width }}" height="{{ attachment.thumbnail.height }}" alt="" />
     1364                                                                <img src="{{ attachment.thumbnail.url }}" width="{{ attachment.thumbnail.width }}" height="{{ attachment.thumbnail.height }}" alt="{{ attachment.alt }}" />
    13651365                                                        <# } else { #>
    1366                                                                 <img src="{{ attachment.url }}" alt="" />
     1366                                                                <img src="{{ attachment.url }}" alt="{{ attachment.alt }}" />
    13671367                                                        <# } #>
    13681368                                                </dt>
    13691369                                                <# if ( attachment.caption ) { #>