Make WordPress Core

Changeset 33263


Ignore:
Timestamp:
07/14/2015 03:05:29 PM (9 years ago)
Author:
obenland
Message:

Media: Remove post_type variable, unused since [32676].

Fixes #32948.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r32964 r33263  
    17411741 */
    17421742function media_upload_header() {
    1743 
    17441743    $post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0;
    17451744
    1746     if ( ! empty( $post_id ) ) {
    1747         $post_type = get_post_type( $post_id );
    1748     } else {
    1749         $post_type = '';
    1750     }
    1751 
    1752     echo '<script type="text/javascript">post_id = ' . $post_id . ';post_type = ' . $post_type . ';</script>';
     1745    echo '<script type="text/javascript">post_id = ' . $post_id . ';</script>';
    17531746    if ( empty( $_GET['chromeless'] ) ) {
    17541747        echo '<div id="media-upload-header">';
Note: See TracChangeset for help on using the changeset viewer.