From 35e593c3abbc6929c1d88aea3f9039f3c316a504 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 11 Jul 2008 15:11:12 +0000 Subject: [PATCH] clean_url() for add_query_arg(). Props xnown. see #7281 git-svn-id: http://svn.automattic.com/wordpress/trunk@8312 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 58a3753f9..fe9eb265e 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -1418,7 +1418,7 @@ add_filter('flash_uploader', 'media_upload_use_flash'); function media_upload_flash_bypass() { echo '

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

'; } @@ -1428,7 +1428,7 @@ function media_upload_html_bypass() { echo '

'; if ( array_key_exists('flash', $_REQUEST) ) // the user manually selected the browser uploader, so let them switch back to Flash - printf( __('You are using the Browser uploader. Try the Flash uploader instead.'), add_query_arg('flash', 1) ); + printf( __('You are using the Browser uploader. Try the Flash uploader instead.'), clean_url(add_query_arg('flash', 1)) ); else // the user probably doesn't have Flash printf( __('You are using the Browser uploader.') );