Ticket #7281: add_query_arg.diff
| File add_query_arg.diff, 1.3 KB (added by , 17 years ago) |
|---|
-
wp-admin/includes/media.php
1418 1418 1419 1419 function media_upload_flash_bypass() { 1420 1420 echo '<p class="upload-flash-bypass">'; 1421 printf( __('You are using the Flash uploader. Problems? Try the <a href="%s">Browser uploader</a> instead.'), add_query_arg('flash', 0) );1421 printf( __('You are using the Flash uploader. Problems? Try the <a href="%s">Browser uploader</a> instead.'), clean_url(add_query_arg('flash', 0)) ); 1422 1422 echo '</p>'; 1423 1423 } 1424 1424 … … 1428 1428 echo '<p class="upload-html-bypass">'; 1429 1429 if ( array_key_exists('flash', $_REQUEST) ) 1430 1430 // the user manually selected the browser uploader, so let them switch back to Flash 1431 printf( __('You are using the Browser uploader. Try the <a href="%s">Flash uploader</a> instead.'), add_query_arg('flash', 1) );1431 printf( __('You are using the Browser uploader. Try the <a href="%s">Flash uploader</a> instead.'), clean_url(add_query_arg('flash', 1)) ); 1432 1432 else 1433 1433 // the user probably doesn't have Flash 1434 1434 printf( __('You are using the Browser uploader.') );