Ticket #34583: 34583.patch
| File 34583.patch, 18.5 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/about.php
134 134 // Image. 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> 140 140 <h3><?php echo $feature['heading']; ?></h3> … … 147 147 <?php foreach ( $minor_features as $feature ) : ?> 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> 153 153 <p><?php echo $feature['description']; ?></p> -
src/wp-admin/custom-header.php
771 771 <p class="hide-if-js"><strong><?php _e( 'You need JavaScript to choose a part of the image.'); ?></strong></p> 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 777 777 <input type="hidden" name="x1" id="x1" value="0"/> -
src/wp-admin/includes/class-wp-theme-install-list-table.php
302 302 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 308 308 <h3><?php echo $name; ?></h3> … … 412 412 <h3 class="theme-name"><?php echo $name; ?></h3> 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"> 418 418 <?php wp_star_rating( array( 'rating' => $theme->rating, 'type' => 'percent', 'number' => $theme->num_ratings ) ); ?> -
src/wp-admin/includes/image-edit.php
184 184 <input type="hidden" id="imgedit-y-<?php echo $post_id; ?>" value="<?php echo isset( $meta['height'] ) ? $meta['height'] : 0; ?>" /> 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="" /> 188 188 </div> 189 189 190 190 <div class="imgedit-submit"> -
src/wp-admin/includes/plugin-install.php
605 605 } 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 } 613 613 ?> -
src/wp-admin/includes/post.php
1615 1615 <div class="post-locked-avatar"></div> 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> 1621 1621 <?php -
src/wp-admin/js/image-edit.js
165 165 'rand': t.intval(Math.random() * 1000000) 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; 171 171 -
src/wp-admin/js/inline-edit-post.js
332 332 row.find('.check-column checkbox').prop('checked', false); 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 } 338 338 row.addClass('wp-locked'); -
src/wp-admin/js/post.js
131 131 } 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 } 137 137 -
src/wp-admin/js/press-this.js
323 323 link = src; 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]'; 329 329 } -
src/wp-admin/update-core.php
360 360 echo " 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 } 366 366 ?> -
src/wp-includes/customize/class-wp-customize-media-control.php
157 157 <div class="attachment-media-view attachment-media-view-{{ data.attachment.type }} {{ data.attachment.orientation }}"> 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> 170 170 <# if ( data.attachment.album || data.attachment.meta.album ) { #> … … 184 184 </video> 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 <# } #> 190 190 </div> -
src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
100 100 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 } 106 106 … … 109 109 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 115 115 if ( event.load && event.format !== 'raw' && hasWpautop ) { … … 162 162 classname += ' mce-wp-' + tag; 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 168 168 // Most common case -
src/wp-includes/js/tinymce/plugins/wpgallery/plugin.js
10 10 function html( cls, data ) { 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 16 16 function restoreMediaShortcodes( content ) { -
src/wp-includes/media-template.php
291 291 <# if ( data.uploading ) { #> 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 301 301 <# if ( 'audio' === data.type ) { #> … … 453 453 <# } else { #> 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> 461 461 <div class="filename"> … … 502 502 <# if ( data.uploading ) { #> 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> 510 510 <div class="details"> … … 820 820 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 826 826 <?php … … 877 877 <div class="embed-media-settings"> 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 ) { #> 883 883 <div class="actions"> … … 1208 1208 <dl class="gallery-item"> 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> 1216 1216 <# if ( attachment.caption ) { #> … … 1232 1232 </script> 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> 1238 1238 … … 1240 1240 <h2><?php _e( 'Preview' ); ?></h2> 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"> 1246 1246 <img id="preview-favicon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/> -
src/wp-includes/media.php
1664 1664 ?> 1665 1665 <script type="text/html" id="tmpl-wp-playlist-current-item"> 1666 1666 <# if ( data.image ) { #> 1667 <img src="{{ data.thumb.src }}" />1667 <img src="{{ data.thumb.src }}" alt="" /> 1668 1668 <# } #> 1669 1669 <div class="wp-playlist-caption"> 1670 1670 <span class="wp-playlist-item-meta wp-playlist-item-title"><?php
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)