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
This commit is contained in:
@@ -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 '<script type="text/javascript">post_id = ' . $post_id . ';post_type = ' . $post_type . ';</script>';
|
||||
echo '<script type="text/javascript">post_id = ' . $post_id . ';</script>';
|
||||
if ( empty( $_GET['chromeless'] ) ) {
|
||||
echo '<div id="media-upload-header">';
|
||||
the_media_upload_tabs();
|
||||
|
||||
Reference in New Issue
Block a user