mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-30 16:17:56 +02:00
After [34629], use $size_class
instead of $size
.
See #32093. Built from https://develop.svn.wordpress.org/trunk@34657 git-svn-id: http://core.svn.wordpress.org/trunk@34621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ce6d084900
commit
6cde1a05cb
@ -767,7 +767,7 @@ function wp_get_attachment_image($attachment_id, $size = 'thumbnail', $icon = fa
|
|||||||
$attachment = get_post($attachment_id);
|
$attachment = get_post($attachment_id);
|
||||||
$default_attr = array(
|
$default_attr = array(
|
||||||
'src' => $src,
|
'src' => $src,
|
||||||
'class' => "attachment-$size_class size-$size",
|
'class' => "attachment-$size_class size-$size_class",
|
||||||
'alt' => trim(strip_tags( get_post_meta($attachment_id, '_wp_attachment_image_alt', true) )), // Use Alt field first
|
'alt' => trim(strip_tags( get_post_meta($attachment_id, '_wp_attachment_image_alt', true) )), // Use Alt field first
|
||||||
);
|
);
|
||||||
if ( empty($default_attr['alt']) )
|
if ( empty($default_attr['alt']) )
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34656';
|
$wp_version = '4.4-alpha-34657';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user