mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-09-07 17:40:24 +00:00
Accessibility: add missing alt attributes to a gaggle of <img>s.
Props afercia. Fixes #34583. git-svn-id: https://develop.svn.wordpress.org/trunk@35567 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -165,7 +165,7 @@ var imageEdit = window.imageEdit = {
|
||||
'rand': t.intval(Math.random() * 1000000)
|
||||
};
|
||||
|
||||
img = $('<img id="image-preview-' + postid + '" />')
|
||||
img = $( '<img id="image-preview-' + postid + '" alt="" />' )
|
||||
.on('load', function() {
|
||||
var max1, max2, parent = $('#imgedit-crop-' + postid), t = imageEdit;
|
||||
|
||||
|
||||
@@ -332,7 +332,7 @@ $( document ).on( 'heartbeat-tick.wp-check-locked-posts', function( e, data ) {
|
||||
row.find('.check-column checkbox').prop('checked', false);
|
||||
|
||||
if ( lock_data.avatar_src ) {
|
||||
avatar = $('<img class="avatar avatar-18 photo" width="18" height="18" />').attr( 'src', lock_data.avatar_src.replace(/&/g, '&') );
|
||||
avatar = $( '<img class="avatar avatar-18 photo" width="18" height="18" alt="" />' ).attr( 'src', lock_data.avatar_src.replace( /&/g, '&' ) );
|
||||
row.find('.column-title .locked-avatar').empty().append( avatar );
|
||||
}
|
||||
row.addClass('wp-locked');
|
||||
|
||||
@@ -131,7 +131,7 @@ $(document).on( 'heartbeat-send.refresh-lock', function( e, data ) {
|
||||
}
|
||||
|
||||
if ( received.lock_error.avatar_src ) {
|
||||
avatar = $('<img class="avatar avatar-64 photo" width="64" height="64" />').attr( 'src', received.lock_error.avatar_src.replace(/&/g, '&') );
|
||||
avatar = $( '<img class="avatar avatar-64 photo" width="64" height="64" alt="" />' ).attr( 'src', received.lock_error.avatar_src.replace( /&/g, '&' ) );
|
||||
wrap.find('div.post-locked-avatar').empty().append( avatar );
|
||||
}
|
||||
|
||||
|
||||
@@ -323,7 +323,7 @@
|
||||
link = src;
|
||||
}
|
||||
|
||||
newContent = '<a href="' + link + '"><img class="alignnone size-full" src="' + src + '" /></a>';
|
||||
newContent = '<a href="' + link + '"><img class="alignnone size-full" src="' + src + '" alt="" /></a>';
|
||||
} else {
|
||||
newContent = '[embed]' + src + '[/embed]';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user