From c4dfc0adba0582579e681fe0b81fc015c875be4b Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Fri, 22 Jul 2016 11:40:28 +0000 Subject: [PATCH] Media: Remove global import for `$content_width` in `_wp_post_thumbnail_html()`. `$content_width` is unused since [35023]. See #28512. Built from https://develop.svn.wordpress.org/trunk@38136 git-svn-id: http://core.svn.wordpress.org/trunk@38077 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 3 +-- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 4e91dc0e28..3e7e333fbe 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1375,7 +1375,6 @@ function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) { * * @since 2.9.0 * - * @global int $content_width * @global array $_wp_additional_image_sizes * * @param int $thumbnail_id ID of the attachment used for thumbnail @@ -1383,7 +1382,7 @@ function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) { * @return string html */ function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) { - global $content_width, $_wp_additional_image_sizes; + global $_wp_additional_image_sizes; $post = get_post( $post ); $post_type_object = get_post_type_object( $post->post_type ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 9fdf3f3ed0..b1fe963f39 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-beta4-38135'; +$wp_version = '4.6-beta4-38136'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.