mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Don't pre-fill empty image alt when inserting into a post.
git-svn-id: https://develop.svn.wordpress.org/trunk@12161 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -100,9 +100,7 @@ function the_media_upload_tabs() {
|
||||
*/
|
||||
function get_image_send_to_editor($id, $caption, $title, $align, $url='', $rel = false, $size='medium', $alt = '') {
|
||||
|
||||
$htmlalt = ( empty($alt) ) ? $title : $alt;
|
||||
|
||||
$html = get_image_tag($id, $htmlalt, $title, $align, $size);
|
||||
$html = get_image_tag($id, $alt, $title, $align, $size);
|
||||
|
||||
$rel = $rel ? ' rel="attachment wp-att-' . esc_attr($id).'"' : '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user