From 542e01162f831c3fb6dbdd95b7a55074352f7919 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Tue, 14 Jul 2015 15:06:25 +0000 Subject: [PATCH] Media: Remove `post_type` variable, unused since [32676]. Fixes #32948. Built from https://develop.svn.wordpress.org/trunk@33263 git-svn-id: http://core.svn.wordpress.org/trunk@33235 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 9 +-------- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 4a2e60566b..bc08784639 100644 --- a/wp-admin/includes/media.php +++ b/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(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 8568a01166..a039dea119 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-beta2-33262'; +$wp_version = '4.3-beta2-33263'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.