Changeset 35567
- Timestamp:
- 11/07/2015 04:11:38 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/about.php
r34054 r35567 135 135 else: 136 136 ?> 137 <img src="<?php echo esc_url( $feature['src'] ); ?>" />137 <img src="<?php echo esc_url( $feature['src'] ); ?>" alt="" /> 138 138 <?php endif; ?> 139 139 </div> … … 148 148 <div class="col"> 149 149 <div class="svg-container"> 150 <img src="<?php echo esc_attr( $feature['src'] ); ?>" />150 <img src="<?php echo esc_attr( $feature['src'] ); ?>" alt="" /> 151 151 </div> 152 152 <h3><?php echo $feature['heading']; ?></h3> -
trunk/src/wp-admin/custom-header.php
r34566 r35567 772 772 773 773 <div id="crop_image" style="position: relative"> 774 <img src="<?php echo esc_url( $url ); ?>" id="upload" width="<?php echo $width; ?>" height="<?php echo $height; ?>" />774 <img src="<?php echo esc_url( $url ); ?>" id="upload" width="<?php echo $width; ?>" height="<?php echo $height; ?>" alt="" /> 775 775 </div> 776 776 -
trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php
r35241 r35567 303 303 ?> 304 304 <a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>"> 305 <img src="<?php echo esc_url( $theme->screenshot_url ); ?>" width="150" />305 <img src="<?php echo esc_url( $theme->screenshot_url ); ?>" width="150" alt="" /> 306 306 </a> 307 307 … … 413 413 <span class="theme-by"><?php printf( __( 'By %s' ), $author ); ?></span> 414 414 <?php if ( isset( $theme->screenshot_url ) ): ?> 415 <img class="theme-screenshot" src="<?php echo esc_url( $theme->screenshot_url ); ?>" />415 <img class="theme-screenshot" src="<?php echo esc_url( $theme->screenshot_url ); ?>" alt="" /> 416 416 <?php endif; ?> 417 417 <div class="theme-details"> -
trunk/src/wp-admin/includes/image-edit.php
r35427 r35567 185 185 186 186 <div id="imgedit-crop-<?php echo $post_id; ?>" class="imgedit-crop-wrap"> 187 <img id="image-preview-<?php echo $post_id; ?>" onload="imageEdit.imgLoaded('<?php echo $post_id; ?>')" src="<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>?action=imgedit-preview&_ajax_nonce=<?php echo $nonce; ?>&postid=<?php echo $post_id; ?>&rand=<?php echo rand(1, 99999); ?>" />187 <img id="image-preview-<?php echo $post_id; ?>" onload="imageEdit.imgLoaded('<?php echo $post_id; ?>')" src="<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>?action=imgedit-preview&_ajax_nonce=<?php echo $nonce; ?>&postid=<?php echo $post_id; ?>&rand=<?php echo rand(1, 99999); ?>" alt="<?php esc_attr_e( 'Image preview' ); ?>" /> 188 188 </div> 189 189 -
trunk/src/wp-admin/includes/plugin-install.php
r35009 r35567 606 606 $contrib_username = sanitize_user( $contrib_username ); 607 607 if ( empty( $contrib_profile ) ) { 608 echo "<li><img src='https://wordpress.org/grav-redirect.php?user={$contrib_username}&s=36' width='18' height='18' />{$contrib_username}</li>";608 echo "<li><img src='https://wordpress.org/grav-redirect.php?user={$contrib_username}&s=36' width='18' height='18' alt='' />{$contrib_username}</li>"; 609 609 } else { 610 echo "<li><a href='{$contrib_profile}' target='_blank'><img src='https://wordpress.org/grav-redirect.php?user={$contrib_username}&s=36' width='18' height='18' />{$contrib_username}</a></li>";610 echo "<li><a href='{$contrib_profile}' target='_blank'><img src='https://wordpress.org/grav-redirect.php?user={$contrib_username}&s=36' width='18' height='18' alt='' />{$contrib_username}</a></li>"; 611 611 } 612 612 } -
trunk/src/wp-admin/includes/post.php
r35482 r35567 1616 1616 <p class="wp-tab-first" tabindex="0"> 1617 1617 <span class="currently-editing"></span><br /> 1618 <span class="locked-saving hidden"><img src="<?php echo esc_url( admin_url( 'images/spinner-2x.gif' ) ); ?>" width="16" height="16" /> <?php _e('Saving revision…'); ?></span>1618 <span class="locked-saving hidden"><img src="<?php echo esc_url( admin_url( 'images/spinner-2x.gif' ) ); ?>" width="16" height="16" alt="" /> <?php _e( 'Saving revision…' ); ?></span> 1619 1619 <span class="locked-saved hidden"><?php _e('Your latest changes were saved as a revision.'); ?></span> 1620 1620 </p> -
trunk/src/wp-admin/js/image-edit.js
r31996 r35567 166 166 }; 167 167 168 img = $( '<img id="image-preview-' + postid + '" />')168 img = $( '<img id="image-preview-' + postid + '" alt="" />' ) 169 169 .on('load', function() { 170 170 var max1, max2, parent = $('#imgedit-crop-' + postid), t = imageEdit; -
trunk/src/wp-admin/js/inline-edit-post.js
r34977 r35567 333 333 334 334 if ( lock_data.avatar_src ) { 335 avatar = $( '<img class="avatar avatar-18 photo" width="18" height="18" />').attr( 'src', lock_data.avatar_src.replace(/&/g, '&') );335 avatar = $( '<img class="avatar avatar-18 photo" width="18" height="18" alt="" />' ).attr( 'src', lock_data.avatar_src.replace( /&/g, '&' ) ); 336 336 row.find('.column-title .locked-avatar').empty().append( avatar ); 337 337 } -
trunk/src/wp-admin/js/post.js
r35229 r35567 132 132 133 133 if ( received.lock_error.avatar_src ) { 134 avatar = $( '<img class="avatar avatar-64 photo" width="64" height="64" />').attr( 'src', received.lock_error.avatar_src.replace(/&/g, '&') );134 avatar = $( '<img class="avatar avatar-64 photo" width="64" height="64" alt="" />' ).attr( 'src', received.lock_error.avatar_src.replace( /&/g, '&' ) ); 135 135 wrap.find('div.post-locked-avatar').empty().append( avatar ); 136 136 } -
trunk/src/wp-admin/js/press-this.js
r33836 r35567 324 324 } 325 325 326 newContent = '<a href="' + link + '"><img class="alignnone size-full" src="' + src + '" /></a>';326 newContent = '<a href="' + link + '"><img class="alignnone size-full" src="' + src + '" alt="" /></a>'; 327 327 } else { 328 328 newContent = '[embed]' + src + '[/embed]'; -
trunk/src/wp-admin/update-core.php
r34598 r35567 361 361 <tr> 362 362 <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr( $stylesheet ) . "' /></th> 363 <td class='plugin-title'><img src='" . esc_url( $theme->get_screenshot() ) . "' width='85' height='64' style='float:left; padding: 0 5px 5px' /><strong>" . $theme->display('Name') . '</strong> ' . sprintf( __( 'You have version %1$s installed. Update to %2$s.' ), $theme->display('Version'), $theme->update['new_version'] ) . "</td>363 <td class='plugin-title'><img src='" . esc_url( $theme->get_screenshot() ) . "' width='85' height='64' style='float:left; padding: 0 5px 5px' alt='' /><strong>" . $theme->display('Name') . '</strong> ' . sprintf( __( 'You have version %1$s installed. Update to %2$s.' ), $theme->display('Version'), $theme->update['new_version'] ) . "</td> 364 364 </tr>"; 365 365 } -
trunk/src/wp-includes/customize/class-wp-customize-media-control.php
r35389 r35567 158 158 <div class="thumbnail thumbnail-{{ data.attachment.type }}"> 159 159 <# if ( 'image' === data.attachment.type && data.attachment.sizes && data.attachment.sizes.medium ) { #> 160 <img class="attachment-thumb" src="{{ data.attachment.sizes.medium.url }}" draggable="false" />160 <img class="attachment-thumb" src="{{ data.attachment.sizes.medium.url }}" draggable="false" alt="" /> 161 161 <# } else if ( 'image' === data.attachment.type && data.attachment.sizes && data.attachment.sizes.full ) { #> 162 <img class="attachment-thumb" src="{{ data.attachment.sizes.full.url }}" draggable="false" />162 <img class="attachment-thumb" src="{{ data.attachment.sizes.full.url }}" draggable="false" alt="" /> 163 163 <# } else if ( 'audio' === data.attachment.type ) { #> 164 164 <# if ( data.attachment.image && data.attachment.image.src && data.attachment.image.src !== data.attachment.icon ) { #> 165 <img src="{{ data.attachment.image.src }}" class="thumbnail" draggable="false" />165 <img src="{{ data.attachment.image.src }}" class="thumbnail" draggable="false" alt="" /> 166 166 <# } else { #> 167 <img src="{{ data.attachment.icon }}" class="attachment-thumb type-icon" draggable="false" />167 <img src="{{ data.attachment.icon }}" class="attachment-thumb type-icon" draggable="false" alt="" /> 168 168 <# } #> 169 169 <p class="attachment-meta attachment-meta-title">“{{ data.attachment.title }}”</p> … … 185 185 </div> 186 186 <# } else { #> 187 <img class="attachment-thumb type-icon icon" src="{{ data.attachment.icon }}" draggable="false" />187 <img class="attachment-thumb type-icon icon" src="{{ data.attachment.icon }}" draggable="false" alt="" /> 188 188 <p class="attachment-title">{{ data.attachment.title }}</p> 189 189 <# } #> -
trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
r35217 r35567 101 101 event.content = event.content.replace( /<!--more(.*?)-->/g, function( match, moretext ) { 102 102 return '<img src="' + tinymce.Env.transparentSrc + '" data-wp-more="more" data-wp-more-text="' + moretext + '" ' + 103 'class="wp-more-tag mce-wp-more" title="' + title + '" data-mce-resize="false" data-mce-placeholder="1" />';103 'class="wp-more-tag mce-wp-more" alt="" title="' + title + '" data-mce-resize="false" data-mce-placeholder="1" />'; 104 104 }); 105 105 } … … 110 110 event.content = event.content.replace( /<!--nextpage-->/g, 111 111 '<img src="' + tinymce.Env.transparentSrc + '" data-wp-more="nextpage" class="wp-more-tag mce-wp-nextpage" ' + 112 ' title="' + title + '" data-mce-resize="false" data-mce-placeholder="1" />' );112 'alt="" title="' + title + '" data-mce-resize="false" data-mce-placeholder="1" />' ); 113 113 } 114 114 … … 163 163 title = tag === 'more' ? 'Read more...' : 'Next page'; 164 164 title = __( title ); 165 html = '<img src="' + tinymce.Env.transparentSrc + '" title="' + title + '" class="' + classname + '" ' +165 html = '<img src="' + tinymce.Env.transparentSrc + '" alt="" title="' + title + '" class="' + classname + '" ' + 166 166 'data-wp-more="' + tag + '" data-mce-resize="false" data-mce-placeholder="1" />'; 167 167 -
trunk/src/wp-includes/js/tinymce/plugins/wpgallery/plugin.js
r29883 r35567 11 11 data = window.encodeURIComponent( data ); 12 12 return '<img src="' + tinymce.Env.transparentSrc + '" class="wp-media mceItem ' + cls + '" ' + 13 'data-wp-media="' + data + '" data-mce-resize="false" data-mce-placeholder="1" />';13 'data-wp-media="' + data + '" data-mce-resize="false" data-mce-placeholder="1" alt="" />'; 14 14 } 15 15 -
trunk/src/wp-includes/media-template.php
r35463 r35567 292 292 <div class="media-progress-bar"><div></div></div> 293 293 <# } else if ( 'image' === data.type && data.sizes && data.sizes.large ) { #> 294 <img class="details-image" src="{{ data.sizes.large.url }}" draggable="false" />294 <img class="details-image" src="{{ data.sizes.large.url }}" draggable="false" alt="" /> 295 295 <# } else if ( 'image' === data.type && data.sizes && data.sizes.full ) { #> 296 <img class="details-image" src="{{ data.sizes.full.url }}" draggable="false" />296 <img class="details-image" src="{{ data.sizes.full.url }}" draggable="false" alt="" /> 297 297 <# } else if ( -1 === jQuery.inArray( data.type, [ 'audio', 'video' ] ) ) { #> 298 <img class="details-image icon" src="{{ data.icon }}" draggable="false" />298 <img class="details-image icon" src="{{ data.icon }}" draggable="false" alt="" /> 299 299 <# } #> 300 300 … … 454 454 <div class="centered"> 455 455 <# if ( data.image && data.image.src && data.image.src !== data.icon ) { #> 456 <img src="{{ data.image.src }}" class="thumbnail" draggable="false" />456 <img src="{{ data.image.src }}" class="thumbnail" draggable="false" alt="" /> 457 457 <# } else { #> 458 <img src="{{ data.icon }}" class="icon" draggable="false" />458 <img src="{{ data.icon }}" class="icon" draggable="false" alt="" /> 459 459 <# } #> 460 460 </div> … … 503 503 <div class="media-progress-bar"><div></div></div> 504 504 <# } else if ( 'image' === data.type && data.sizes ) { #> 505 <img src="{{ data.size.url }}" draggable="false" />505 <img src="{{ data.size.url }}" draggable="false" alt="" /> 506 506 <# } else { #> 507 <img src="{{ data.icon }}" class="icon" draggable="false" />507 <img src="{{ data.icon }}" class="icon" draggable="false" alt="" /> 508 508 <# } #> 509 509 </div> … … 821 821 <script type="text/html" id="tmpl-embed-image-settings"> 822 822 <div class="thumbnail"> 823 <img src="{{ data.model.url }}" draggable="false" />823 <img src="{{ data.model.url }}" draggable="false" alt="" /> 824 824 </div> 825 825 … … 878 878 <div class="column-image"> 879 879 <div class="image"> 880 <img src="{{ data.model.url }}" draggable="false" />880 <img src="{{ data.model.url }}" draggable="false" alt="" /> 881 881 882 882 <# if ( data.attachment && window.imageEdit ) { #> … … 1209 1209 <dt class="gallery-icon"> 1210 1210 <# if ( attachment.thumbnail ) { #> 1211 <img src="{{ attachment.thumbnail.url }}" width="{{ attachment.thumbnail.width }}" height="{{ attachment.thumbnail.height }}" />1211 <img src="{{ attachment.thumbnail.url }}" width="{{ attachment.thumbnail.width }}" height="{{ attachment.thumbnail.height }}" alt="" /> 1212 1212 <# } else { #> 1213 <img src="{{ attachment.url }}" />1213 <img src="{{ attachment.url }}" alt="" /> 1214 1214 <# } #> 1215 1215 </dt> … … 1233 1233 1234 1234 <script type="text/html" id="tmpl-crop-content"> 1235 <img class="crop-image" src="{{ data.url }}" >1235 <img class="crop-image" src="{{ data.url }}" alt=""> 1236 1236 <div class="upload-errors"></div> 1237 1237 </script> … … 1241 1241 <strong><?php _e( 'As a browser icon' ); ?></strong> 1242 1242 <div class="favicon-preview"> 1243 <img src="images/browser.png" class="browser-preview" width="182" height="" alt="" />1243 <img src="images/browser.png" class="browser-preview" width="182" height="" alt="" /> 1244 1244 1245 1245 <div class="favicon"> -
trunk/src/wp-includes/media.php
r35561 r35567 1673 1673 <script type="text/html" id="tmpl-wp-playlist-current-item"> 1674 1674 <# if ( data.image ) { #> 1675 <img src="{{ data.thumb.src }}" />1675 <img src="{{ data.thumb.src }}" alt="" /> 1676 1676 <# } #> 1677 1677 <div class="wp-playlist-caption">
Note: See TracChangeset
for help on using the changeset viewer.