wp_iframe

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

WordPress Version: 6.5

/**
 * Outputs the iframe to display the media upload page.
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @global string $body_id
 *
 * @param callable $content_func Function that outputs the content.
 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
 */
function wp_iframe($content_func, ...$args)
{
    global $body_id;
    _wp_admin_html_begin();
    ?>
	<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'.
    if (is_array($content_func) && !empty($content_func[1]) && str_starts_with((string) $content_func[1], 'media') || !is_array($content_func) && str_starts_with($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    ?>
	<script type="text/javascript">
	addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(function(){func();});else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
	var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
	isRtl = <?php 
    echo (int) is_rtl();
    ?>;
	</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook name, `$content_func`, refers to the form
         * callback for the media upload type.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($body_id)) {
        $body_id_attr = ' id="' . $body_id . '"';
    }
    ?>
	</head>
	<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
	<script type="text/javascript">
	document.body.className = document.body.className.replace('no-js', 'js');
	</script>
	<?php 
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
	<script type="text/javascript">if(typeof wpOnload==='function')wpOnload();</script>
	</body>
	</html>
	<?php 
}

WordPress Version: 6.3

/**
 * Outputs the iframe to display the media upload page.
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @global int $body_id
 *
 * @param callable $content_func Function that outputs the content.
 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
 */
function wp_iframe($content_func, ...$args)
{
    _wp_admin_html_begin();
    ?>
	<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'.
    if (is_array($content_func) && !empty($content_func[1]) && str_starts_with((string) $content_func[1], 'media') || !is_array($content_func) && str_starts_with($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    ?>
	<script type="text/javascript">
	addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(function(){func();});else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
	var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
	isRtl = <?php 
    echo (int) is_rtl();
    ?>;
	</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook name, `$content_func`, refers to the form
         * callback for the media upload type.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
	</head>
	<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
	<script type="text/javascript">
	document.body.className = document.body.className.replace('no-js', 'js');
	</script>
	<?php 
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
	<script type="text/javascript">if(typeof wpOnload==='function')wpOnload();</script>
	</body>
	</html>
	<?php 
}

WordPress Version: 5.9

/**
 * Outputs the iframe to display the media upload page.
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @global int $body_id
 *
 * @param callable $content_func Function that outputs the content.
 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
 */
function wp_iframe($content_func, ...$args)
{
    _wp_admin_html_begin();
    ?>
	<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'.
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    ?>
	<script type="text/javascript">
	addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(function(){func();});else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
	var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
	isRtl = <?php 
    echo (int) is_rtl();
    ?>;
	</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook name, `$content_func`, refers to the form
         * callback for the media upload type.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
	</head>
	<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
	<script type="text/javascript">
	document.body.className = document.body.className.replace('no-js', 'js');
	</script>
	<?php 
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
	<script type="text/javascript">if(typeof wpOnload==='function')wpOnload();</script>
	</body>
	</html>
	<?php 
}

WordPress Version: 5.8

/**
 * Outputs the iframe to display the media upload page.
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @global int $body_id
 *
 * @param callable $content_func Function that outputs the content.
 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
 */
function wp_iframe($content_func, ...$args)
{
    _wp_admin_html_begin();
    ?>
	<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'.
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    ?>
	<script type="text/javascript">
	addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(document).ready(func);else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
	var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
	isRtl = <?php 
    echo (int) is_rtl();
    ?>;
	</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
	</head>
	<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
	<script type="text/javascript">
	document.body.className = document.body.className.replace('no-js', 'js');
	</script>
	<?php 
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
	<script type="text/javascript">if(typeof wpOnload==='function')wpOnload();</script>
	</body>
	</html>
	<?php 
}

WordPress Version: .10

/**
 * Outputs the iframe to display the media upload page.
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @global int $body_id
 *
 * @param callable $content_func Function that outputs the content.
 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
 */
function wp_iframe($content_func, ...$args)
{
    _wp_admin_html_begin();
    ?>
	<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'.
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    ?>
	<script type="text/javascript">
	addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
	var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
	isRtl = <?php 
    echo (int) is_rtl();
    ?>;
	</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
	</head>
	<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
	<script type="text/javascript">
	document.body.className = document.body.className.replace('no-js', 'js');
	</script>
	<?php 
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
	<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
	</body>
	</html>
	<?php 
}

WordPress Version: 5.5

/**
 * Outputs the iframe to display the media upload page.
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @global int $body_id
 *
 * @param callable $content_func Function that outputs the content.
 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
 */
function wp_iframe($content_func, ...$args)
{
    _wp_admin_html_begin();
    ?>
	<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'.
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    ?>
	<script type="text/javascript">
	addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
	var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
	isRtl = <?php 
    echo (int) is_rtl();
    ?>;
	</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
	</head>
	<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
	<script type="text/javascript">
	document.body.className = document.body.className.replace('no-js', 'js');
	</script>
	<?php 
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
	<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
	</body>
	</html>
	<?php 
}

WordPress Version: 4.3

/**
 * Outputs the iframe to display the media upload page.
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @global int $body_id
 *
 * @param callable $content_func Function that outputs the content.
 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
 */
function wp_iframe($content_func, ...$args)
{
    _wp_admin_html_begin();
    ?>
	<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'.
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
	<script type="text/javascript">
	addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
	var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
	isRtl = <?php 
    echo (int) is_rtl();
    ?>;
	</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
	</head>
	<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
	<script type="text/javascript">
	document.body.className = document.body.className.replace('no-js', 'js');
	</script>
	<?php 
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
	<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
	</body>
	</html>
	<?php 
}

WordPress Version: 4.2

/**
 * Outputs the iframe to display the media upload page.
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @global int $body_id
 *
 * @param callable $content_func Function that outputs the content.
 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
 */
function wp_iframe($content_func, ...$args)
{
    _wp_admin_html_begin();
    ?>
	<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'.
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
	<script type="text/javascript">
	addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
	var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
	isRtl = <?php 
    echo (int) is_rtl();
    ?>;
	</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
	</head>
	<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
	<script type="text/javascript">
	document.body.className = document.body.className.replace('no-js', 'js');
	</script>
	<?php 
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
	<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
	</body>
	</html>
	<?php 
}

WordPress Version: .10

/**
 * Outputs the iframe to display the media upload page.
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @global int $body_id
 *
 * @param callable $content_func Function that outputs the content.
 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
 */
function wp_iframe($content_func, ...$args)
{
    _wp_admin_html_begin();
    ?>
	<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'.
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
	<script type="text/javascript">
	addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
	var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
	isRtl = <?php 
    echo (int) is_rtl();
    ?>;
	</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
	</head>
	<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
	<script type="text/javascript">
	document.body.className = document.body.className.replace('no-js', 'js');
	</script>
	<?php 
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
	<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
	</body>
	</html>
	<?php 
}

WordPress Version: 5.4

/**
 * Outputs the iframe to display the media upload page.
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @global int $body_id
 *
 * @param callable $content_func Function that outputs the content.
 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
 */
function wp_iframe($content_func, ...$args)
{
    _wp_admin_html_begin();
    ?>
	<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'.
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
	<script type="text/javascript">
	addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
	var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
	isRtl = <?php 
    echo (int) is_rtl();
    ?>;
	</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
	</head>
	<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
	<script type="text/javascript">
	document.body.className = document.body.className.replace('no-js', 'js');
	</script>
	<?php 
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
	<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
	</body>
	</html>
	<?php 
}

WordPress Version: 3.5

/**
 * Outputs the iframe to display the media upload page.
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @global int $body_id
 *
 * @param callable $content_func Function that outputs the content.
 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
 */
function wp_iframe($content_func, ...$args)
{
    _wp_admin_html_begin();
    ?>
	<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
	<script type="text/javascript">
	addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
	var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
	isRtl = <?php 
    echo (int) is_rtl();
    ?>;
	</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
	</head>
	<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
	<script type="text/javascript">
	document.body.className = document.body.className.replace('no-js', 'js');
	</script>
	<?php 
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
	<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
	</body>
	</html>
	<?php 
}

WordPress Version: 3.2

/**
 * Outputs the iframe to display the media upload page.
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @global int $body_id
 *
 * @param callable $content_func Function that outputs the content.
 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
 */
function wp_iframe($content_func, ...$args)
{
    _wp_admin_html_begin();
    ?>
	<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
	<script type="text/javascript">
	addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
	var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
	isRtl = <?php 
    echo (int) is_rtl();
    ?>;
	</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
	</head>
	<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
	<script type="text/javascript">
	document.body.className = document.body.className.replace('no-js', 'js');
	</script>
	<?php 
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
	<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
	</body>
	</html>
	<?php 
}

WordPress Version: .10

/**
 * Outputs the iframe to display the media upload page.
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @global int $body_id
 *
 * @param callable $content_func Function that outputs the content.
 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
 */
function wp_iframe($content_func, ...$args)
{
    _wp_admin_html_begin();
    ?>
	<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
	<script type="text/javascript">
	addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
	var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
	isRtl = <?php 
    echo (int) is_rtl();
    ?>;
	</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
	</head>
	<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
	<script type="text/javascript">
	document.body.className = document.body.className.replace('no-js', 'js');
	</script>
	<?php 
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
	<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
	</body>
	</html>
	<?php 
}

WordPress Version: 5.3

/**
 * Outputs the iframe to display the media upload page.
 *
 * @since 2.5.0
 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
 *              by adding it to the function signature.
 *
 * @global int $body_id
 *
 * @param callable $content_func Function that outputs the content.
 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
 */
function wp_iframe($content_func, ...$args)
{
    _wp_admin_html_begin();
    ?>
	<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
	<script type="text/javascript">
	addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
	var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
	isRtl = <?php 
    echo (int) is_rtl();
    ?>;
	</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
	</head>
	<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
	<script type="text/javascript">
	document.body.className = document.body.className.replace('no-js', 'js');
	</script>
	<?php 
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
	<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
	</body>
	</html>
	<?php 
}

WordPress Version: 2.8

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
</head>
<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
	<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
	<?php 
}

WordPress Version: 2.3

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
</head>
<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
	<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
	<?php 
}

WordPress Version: .20

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
</head>
<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
	<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
	<?php 
}

WordPress Version: 2.2

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
</head>
<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
	<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
	<?php 
}

WordPress Version: .10

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
</head>
<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
	<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
	<?php 
}

WordPress Version: 5.2

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
</head>
<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
	<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
	<?php 
}

WordPress Version: 1.7

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
</head>
<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
	<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
	<?php 
}

WordPress Version: 1.2

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
</head>
<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
	<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
	<?php 
}

WordPress Version: .10

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
</head>
<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
	<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
	<?php 
}

WordPress Version: 5.1

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
	<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
	<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    $body_id_attr = '';
    if (isset($GLOBALS['body_id'])) {
        $body_id_attr = ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
</head>
<body<?php 
    echo $body_id_attr;
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
	<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
	<?php 
}

WordPress Version: 0.3

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .20

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 0.2

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .11

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 9.3

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .20

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 9.2

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .16

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 6.3

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .20

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 5.4

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .30

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 5.3

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .23

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 4.5

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('deprecated-media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 4.4

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .30

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 4.3

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .24

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 3.4

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .30

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 3.3

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .25

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 4.3

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @global int $body_id
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 2.4

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .30

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 2.3

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .29

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 4.2

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 1.5

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
//]]>
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .40

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
//]]>
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 1.4

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
//]]>
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .32

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
//]]>
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 4.1

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param string|callable $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
//]]>
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, `$content_func`, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 0.4

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param array $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
//]]>
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, $content_func, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .32

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param array $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
//]]>
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, $content_func, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 3.9

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param array $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
//]]>
</script>
<?php 
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    /**
     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_styles-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_styles');
    /**
     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_print_scripts-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_print_scripts');
    /**
     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     * media upload popup are printed.
     *
     * @since 2.9.0
     */
    do_action('admin_head-media-upload-popup');
    /** This action is documented in wp-admin/admin-header.php */
    do_action('admin_head');
    if (is_string($content_func)) {
        /**
         * Fires in the admin header for each specific form tab in the legacy
         * (pre-3.5.0) media upload popup.
         *
         * The dynamic portion of the hook, $content_func, refers to the form
         * callback for the media upload type. Possible values include
         * 'media_upload_type_form', 'media_upload_type_url_form', and
         * 'media_upload_library_form'.
         *
         * @since 2.5.0
         */
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    /** This action is documented in wp-admin/admin-footer.php */
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 8.4

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param array $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
//]]>
</script>
<?php 
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    do_action('admin_print_styles-media-upload-popup');
    do_action('admin_print_styles');
    do_action('admin_print_scripts-media-upload-popup');
    do_action('admin_print_scripts');
    do_action('admin_head-media-upload-popup');
    do_action('admin_head');
    if (is_string($content_func)) {
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .35

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param array $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
//]]>
</script>
<?php 
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    do_action('admin_print_styles-media-upload-popup');
    do_action('admin_print_styles');
    do_action('admin_print_scripts-media-upload-popup');
    do_action('admin_print_scripts');
    do_action('admin_head-media-upload-popup');
    do_action('admin_head');
    if (is_string($content_func)) {
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 7.5

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param array $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
//]]>
</script>
<?php 
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    do_action('admin_print_styles-media-upload-popup');
    do_action('admin_print_styles');
    do_action('admin_print_scripts-media-upload-popup');
    do_action('admin_print_scripts');
    do_action('admin_head-media-upload-popup');
    do_action('admin_head');
    if (is_string($content_func)) {
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .40

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param array $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
//]]>
</script>
<?php 
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    do_action('admin_print_styles-media-upload-popup');
    do_action('admin_print_styles');
    do_action('admin_print_scripts-media-upload-popup');
    do_action('admin_print_scripts');
    do_action('admin_head-media-upload-popup');
    do_action('admin_head');
    if (is_string($content_func)) {
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 7.4

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param array $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
//]]>
</script>
<?php 
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    do_action('admin_print_styles-media-upload-popup');
    do_action('admin_print_styles');
    do_action('admin_print_scripts-media-upload-popup');
    do_action('admin_print_scripts');
    do_action('admin_head-media-upload-popup');
    do_action('admin_head');
    if (is_string($content_func)) {
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: .35

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param array $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo esc_js(admin_url('admin-ajax.php', 'relative'));
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
//]]>
</script>
<?php 
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    do_action('admin_print_styles-media-upload-popup');
    do_action('admin_print_styles');
    do_action('admin_print_scripts-media-upload-popup');
    do_action('admin_print_scripts');
    do_action('admin_head-media-upload-popup');
    do_action('admin_head');
    if (is_string($content_func)) {
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}

WordPress Version: 3.7

/**
 * Adds the iframe to display content for the media upload page
 *
 * @since 2.5.0
 *
 * @param array $content_func
 */
function wp_iframe($content_func)
{
    _wp_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?> &rsaquo; <?php 
    _e('Uploads');
    ?> &#8212; <?php 
    _e('WordPress');
    ?></title>
<?php 
    wp_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        wp_enqueue_style('media');
    }
    wp_enqueue_style('ie');
    ?>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php', 'relative');
    ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>;
//]]>
</script>
<?php 
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    do_action('admin_print_styles-media-upload-popup');
    do_action('admin_print_styles');
    do_action('admin_print_scripts-media-upload-popup');
    do_action('admin_print_scripts');
    do_action('admin_head-media-upload-popup');
    do_action('admin_head');
    if (is_string($content_func)) {
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?> class="wp-core-ui no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
<?php 
}