From 1b6ed5cbb7dc4430da71de609e3579b2efe6c0f2 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sun, 27 Sep 2015 17:54:27 +0000 Subject: [PATCH] Add `size-$size` class to `` in `wp_get_attachment_image()`. Fixes #32093. Built from https://develop.svn.wordpress.org/trunk@34629 git-svn-id: http://core.svn.wordpress.org/trunk@34593 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index ef41e201f0..b3a7ac7cd2 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -767,7 +767,7 @@ function wp_get_attachment_image($attachment_id, $size = 'thumbnail', $icon = fa $attachment = get_post($attachment_id); $default_attr = array( 'src' => $src, - 'class' => "attachment-$size_class", + 'class' => "attachment-$size_class size-$size", 'alt' => trim(strip_tags( get_post_meta($attachment_id, '_wp_attachment_image_alt', true) )), // Use Alt field first ); if ( empty($default_attr['alt']) ) diff --git a/wp-includes/version.php b/wp-includes/version.php index 8447dce072..65d0a95209 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34628'; +$wp_version = '4.4-alpha-34629'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.