diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 5f590d7099..73c0299501 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -1377,7 +1377,8 @@ function get_compat_media_markup( $attachment_id, $args = null ) { * @since 2.5.0 */ function media_upload_header() { - echo '\n"; + $post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0; + echo '\n"; if ( empty( $_GET['chromeless'] ) ) { echo '