From 4fd98bb5ed5ef6d953986c84769058ee1f9f4e2e Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Fri, 22 Jul 2016 11:39:28 +0000 Subject: [PATCH] Media: Remove global import for `$content_width` in `_wp_post_thumbnail_html()`. `$content_width` is unused since [35023]. See #28512. git-svn-id: https://develop.svn.wordpress.org/trunk@38136 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/post.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php index 4e91dc0e28..3e7e333fbe 100644 --- a/src/wp-admin/includes/post.php +++ b/src/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 );