media_upload_header

The timeline below displays how wordpress function media_upload_header has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.6

/**
 * Outputs the legacy media upload header.
 *
 * @since 2.5.0
 */
function media_upload_header()
{
    $post_id = isset($_REQUEST['post_id']) ? (int) $_REQUEST['post_id'] : 0;
    echo '<script type="text/javascript">post_id = ' . $post_id . ';</script>';
    if (empty($_GET['chromeless'])) {
        echo '<div id="media-upload-header">';
        the_media_upload_tabs();
        echo '</div>';
    }
}

WordPress Version: 4.4

/**
 * Outputs the legacy media upload header.
 *
 * @since 2.5.0
 */
function media_upload_header()
{
    $post_id = isset($_REQUEST['post_id']) ? intval($_REQUEST['post_id']) : 0;
    echo '<script type="text/javascript">post_id = ' . $post_id . ';</script>';
    if (empty($_GET['chromeless'])) {
        echo '<div id="media-upload-header">';
        the_media_upload_tabs();
        echo '</div>';
    }
}

WordPress Version: 4.3

/**
 * {@internal Missing Short Description}}
 *
 * @since 2.5.0
 */
function media_upload_header()
{
    $post_id = isset($_REQUEST['post_id']) ? intval($_REQUEST['post_id']) : 0;
    echo '<script type="text/javascript">post_id = ' . $post_id . ';</script>';
    if (empty($_GET['chromeless'])) {
        echo '<div id="media-upload-header">';
        the_media_upload_tabs();
        echo '</div>';
    }
}

WordPress Version: 3.7

/**
 * {@internal Missing Short Description}}
 *
 * @since 2.5.0
 */
function media_upload_header()
{
    $post_id = isset($_REQUEST['post_id']) ? intval($_REQUEST['post_id']) : 0;
    echo '<script type="text/javascript">post_id = ' . $post_id . ";</script>\n";
    if (empty($_GET['chromeless'])) {
        echo '<div id="media-upload-header">';
        the_media_upload_tabs();
        echo '</div>';
    }
}