mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
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:
parent
28ce0320e3
commit
542e01162f
@ -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();
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user