if ( array_key_exists('flash', $_REQUEST) ) $flash = !empty($_REQUEST['flash']); return $flash; } add_filter('flash_uploader', 'media_upload_use_flash'); /** * {@internal Missing Short Description}} * * @since unknown */ function media_upload_flash_bypass() { echo '

'; printf( __('You are using the Flash uploader. Problems? Try the Browser uploader instead.'), esc_url(add_query_arg('flash', 0)) ); echo '

'; } /** * {@internal Missing Short Description}} * * @since unknown */ function media_upload_html_bypass($flash = true) { echo '

'; _e('You are using the Browser uploader.'); if ( $flash ) { // the user manually selected the browser uploader, so let them switch back to Flash echo ' '; printf( __('Try the Flash uploader instead.'), esc_url(add_query_arg('flash', 1)) ); } echo "

\n"; } add_action('post-flash-upload-ui', 'media_upload_flash_bypass'); add_action('post-html-upload-ui', 'media_upload_html_bypass'); /** * {@internal Missing Short Description}} * * Make sure the GET parameter sticks when we submit a form. * * @since unknown * * @param unknown_type $url * @return unknown */ function media_upload_bypass_url($url) { if ( array_key_exists('flash', $_REQUEST) ) $url = add_query_arg('flash', intval($_REQUEST['flash'])); return $url; } add_filter('media_upload_form_url', 'media_upload_bypass_url'); add_filter('async_upload_image', 'get_media_item', 10, 2); add_filter('async_upload_audio', 'get_media_item', 10, 2); add_filter('async_upload_video', 'get_media_item', 10, 2); add_filter('async_upload_file', 'get_media_item', 10, 2); add_action('media_upload_image', 'media_upload_image'); add_action('media_upload_audio', 'media_upload_audio'); add_action('media_upload_video', 'media_upload_video'); add_action('media_upload_file', 'media_upload_file'); add_filter('media_upload_gallery', 'media_upload_gallery'); add_filter('media_upload_library', 'media_upload_library'); ?>
Warning: Cannot modify header information - headers already sent by (output started at /home/content/f/r/e/freehotmyspace/html/wp-admin/includes/media.php:2139) in /home/content/f/r/e/freehotmyspace/html/wp-includes/class-IXR.php on line 304
XML-RPC server accepts POST requests only.