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
This commit is contained in:
Konstantin Obenland 2015-07-14 15:05:29 +00:00
parent ce4b40d794
commit 3a696d7d91

View File

@ -1740,16 +1740,9 @@ function get_compat_media_markup( $attachment_id, $args = null ) {
* @since 2.5.0 * @since 2.5.0
*/ */
function media_upload_header() { function media_upload_header() {
$post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0; $post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0;
if ( ! empty( $post_id ) ) { echo '<script type="text/javascript">post_id = ' . $post_id . ';</script>';
$post_type = get_post_type( $post_id );
} else {
$post_type = '';
}
echo '<script type="text/javascript">post_id = ' . $post_id . ';post_type = ' . $post_type . ';</script>';
if ( empty( $_GET['chromeless'] ) ) { if ( empty( $_GET['chromeless'] ) ) {
echo '<div id="media-upload-header">'; echo '<div id="media-upload-header">';
the_media_upload_tabs(); the_media_upload_tabs();