Ticket #43139: 43139.patch
File 43139.patch, 872 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/widgets/class-wp-widget-media-gallery.php
174 174 <script type="text/html" id="tmpl-wp-media-widget-gallery-preview"> 175 175 <# var describedById = 'describedBy-' + String( Math.random() ); #> 176 176 <# if ( data.ids.length ) { #> 177 <# var AttachIds = []; #> 178 <# _.each( data.ids, function( id, index ) { #> 179 <# 180 var attachment = data.attachments[ id ]; 181 if ( attachment ) { 182 AttachIds.push(id); 183 } 184 #> 185 <# } ); #> 186 <# data.ids = AttachIds; #> 177 187 <div class="gallery media-widget-gallery-preview"> 178 188 <# _.each( data.ids, function( id, index ) { #> 179 189 <#