From 3a696d7d91f609a7ecb04a91513299107c404945 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Tue, 14 Jul 2015 15:05:29 +0000 Subject: [PATCH] Media: Remove `post_type` variable, unused since [32676]. Fixes #32948. git-svn-id: https://develop.svn.wordpress.org/trunk@33263 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/media.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php index 4a2e60566b..bc08784639 100644 --- a/src/wp-admin/includes/media.php +++ b/src/wp-admin/includes/media.php @@ -1740,16 +1740,9 @@ function get_compat_media_markup( $attachment_id, $args = null ) { * @since 2.5.0 */ function media_upload_header() { - $post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0; - if ( ! empty( $post_id ) ) { - $post_type = get_post_type( $post_id ); - } else { - $post_type = ''; - } - - echo ''; + echo ''; if ( empty( $_GET['chromeless'] ) ) { echo '
'; the_media_upload_tabs();