Make WordPress Core

Changeset 8312


Ignore:
Timestamp:
07/11/2008 03:11:12 PM (17 years ago)
Author:
ryan
Message:

clean_url() for add_query_arg(). Props xnown. see #7281

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r8310 r8312  
    14191419function media_upload_flash_bypass() {
    14201420        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)) );
    14221422        echo '</p>';
    14231423}
     
    14291429        if ( array_key_exists('flash', $_REQUEST) )
    14301430                // 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)) );
    14321432        else
    14331433                // the user probably doesn't have Flash
Note: See TracChangeset for help on using the changeset viewer.