media_upload_flash_bypass

Displays the multi-file uploader message.

Description

media_upload_flash_bypass(); 

Usage

  1. if ( !function_exists( 'media_upload_flash_bypass' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/media.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = media_upload_flash_bypass(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/media.php  
  1. function media_upload_flash_bypass() { 
  2. $browser_uploader = admin_url( 'media-new.php?browser-uploader' ); 
  3.  
  4. if ( $post = get_post() ) 
  5. $browser_uploader .= '&post_id=' . intval( $post->ID ); 
  6. elseif ( ! empty( $GLOBALS['post_ID'] ) ) 
  7. $browser_uploader .= '&post_id=' . intval( $GLOBALS['post_ID'] ); 
  8.  
  9. ?> 
  10. <p class="upload-flash-bypass"> 
  11. <?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' ); ?> 
  12. </p> 
  13. <?php