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();