media_upload_flash_bypass

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

WordPress Version: 5.6

/**
 * Displays the multi-file uploader message.
 *
 * @since 2.6.0
 *
 * @global int $post_ID
 */
function media_upload_flash_bypass()
{
    $browser_uploader = admin_url('media-new.php?browser-uploader');
    $post = get_post();
    if ($post) {
        $browser_uploader .= '&post_id=' . (int) $post->ID;
    } elseif (!empty($GLOBALS['post_ID'])) {
        $browser_uploader .= '&post_id=' . (int) $GLOBALS['post_ID'];
    }
    ?>
	<p class="upload-flash-bypass">
	<?php 
    printf(
        /* translators: 1: URL to browser uploader, 2: Additional link attributes. */
        __('You are using the multi-file uploader. Problems? Try the <a href="%1$s" %2$s>browser uploader</a> instead.'),
        $browser_uploader,
        'target="_blank"'
    );
    ?>
	</p>
	<?php 
}

WordPress Version: 5.3

/**
 * Displays the multi-file uploader message.
 *
 * @since 2.6.0
 *
 * @global int $post_ID
 */
function media_upload_flash_bypass()
{
    $browser_uploader = admin_url('media-new.php?browser-uploader');
    $post = get_post();
    if ($post) {
        $browser_uploader .= '&amp;post_id=' . intval($post->ID);
    } elseif (!empty($GLOBALS['post_ID'])) {
        $browser_uploader .= '&amp;post_id=' . intval($GLOBALS['post_ID']);
    }
    ?>
	<p class="upload-flash-bypass">
	<?php 
    printf(
        /* translators: 1: URL to browser uploader, 2: Additional link attributes. */
        __('You are using the multi-file uploader. Problems? Try the <a href="%1$s" %2$s>browser uploader</a> instead.'),
        $browser_uploader,
        'target="_blank"'
    );
    ?>
	</p>
	<?php 
}

WordPress Version: 4.3

/**
 * Displays the multi-file uploader message.
 *
 * @since 2.6.0
 *
 * @global int $post_ID
 */
function media_upload_flash_bypass()
{
    $browser_uploader = admin_url('media-new.php?browser-uploader');
    if ($post = get_post()) {
        $browser_uploader .= '&amp;post_id=' . intval($post->ID);
    } elseif (!empty($GLOBALS['post_ID'])) {
        $browser_uploader .= '&amp;post_id=' . intval($GLOBALS['post_ID']);
    }
    ?>
	<p class="upload-flash-bypass">
	<?php 
    printf(__('You are using the multi-file uploader. Problems? Try the <a href="%1$s" target="%2$s">browser uploader</a> instead.'), $browser_uploader, '_blank');
    ?>
	</p>
	<?php 
}

WordPress Version: 3.7

/**
 * Displays the multi-file uploader message.
 *
 * @since 2.6.0
 */
function media_upload_flash_bypass()
{
    $browser_uploader = admin_url('media-new.php?browser-uploader');
    if ($post = get_post()) {
        $browser_uploader .= '&amp;post_id=' . intval($post->ID);
    } elseif (!empty($GLOBALS['post_ID'])) {
        $browser_uploader .= '&amp;post_id=' . intval($GLOBALS['post_ID']);
    }
    ?>
	<p class="upload-flash-bypass">
	<?php 
    printf(__('You are using the multi-file uploader. Problems? Try the <a href="%1$s" target="%2$s">browser uploader</a> instead.'), $browser_uploader, '_blank');
    ?>
	</p>
	<?php 
}