Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r16668 r17347  
    1010 * {@internal Missing Short Description}}
    1111 *
    12  * @since unknown
     12 * @since 2.5.0
    1313 *
    1414 * @return unknown
     
    2828 * {@internal Missing Short Description}}
    2929 *
    30  * @since unknown
     30 * @since 2.5.0
    3131 *
    3232 * @param unknown_type $tabs
     
    6060 * {@internal Missing Short Description}}
    6161 *
    62  * @since unknown
     62 * @since 2.5.0
    6363 */
    6464function the_media_upload_tabs() {
     
    9090 * {@internal Missing Short Description}}
    9191 *
    92  * @since unknown
     92 * @since 2.5.0
    9393 *
    9494 * @param unknown_type $id
     
    118118 * {@internal Missing Short Description}}
    119119 *
    120  * @since unknown
     120 * @since 2.6.0
    121121 *
    122122 * @param unknown_type $html
     
    141141    $width = $matches[1];
    142142
     143    $caption = str_replace( array( '>',    '<',    '"',      "'" ),
     144                            array( '&gt;', '&lt;', '&quot;', '&#039;' ),
     145                            $caption
     146                          );
     147
    143148    $html = preg_replace( '/(class=["\'][^\'"]*)align(none|left|right|center)\s?/', '$1', $html );
    144149    if ( empty($align) )
     
    155160 * {@internal Missing Short Description}}
    156161 *
    157  * @since unknown
     162 * @since 2.5.0
    158163 *
    159164 * @param unknown_type $html
     
    176181 * This handles the file upload POST itself, creating the attachment post.
    177182 *
    178  * @since unknown
     183 * @since 2.5.0
    179184 *
    180185 * @param string $file_id Index into the {@link $_FILES} array of the upload
     
    235240
    236241/**
    237  * {@internal Missing Short Description}}
    238  *
    239  * @since unknown
    240  *
    241  * @param unknown_type $file_array
    242  * @param unknown_type $post_id
    243  * @param unknown_type $desc
    244  * @param unknown_type $post_data
    245  * @return unknown
     242 * This handles a sideloaded file in the same way as an uploaded file is handled by {@link media_handle_upload()}
     243 *
     244 * @since 2.6.0
     245 *
     246 * @param array $file_array Array similar to a {@link $_FILES} upload array
     247 * @param int $post_id The post ID the media is associated with
     248 * @param string $desc Description of the sideloaded file
     249 * @param array $post_data allows you to overwrite some of the attachment
     250 * @return int|object The ID of the attachment or a WP_Error on failure
    246251 */
    247252function media_handle_sideload($file_array, $post_id, $desc = null, $post_data = array()) {
     
    266271    }
    267272
    268     $title = @$desc;
     273    $title = isset($desc) ? $desc : '';
    269274
    270275    // Construct the attachment array
     
    279284    // Save the attachment metadata
    280285    $id = wp_insert_attachment($attachment, $file, $post_id);
    281     if ( !is_wp_error($id) ) {
     286    if ( !is_wp_error($id) )
    282287        wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
    283         return $url;
    284     }
     288
    285289    return $id;
    286290}
     
    292296 * etc any additional function args will be passed to content_func.
    293297 *
    294  * @since unknown
     298 * @since 2.5.0
    295299 *
    296300 * @param unknown_type $content_func
     
    308312wp_enqueue_style( 'colors' );
    309313// Check callback name for 'media'
    310 if ( ( is_array( $content_func ) && ! empty( $content_func[1] ) && 0 === strpos( (string) $content_func[1], 'media' ) ) || 0 === strpos( $content_func, 'media' ) )
     314if ( ( is_array( $content_func ) && ! empty( $content_func[1] ) && 0 === strpos( (string) $content_func[1], 'media' ) )
     315    || ( ! is_array( $content_func ) && 0 === strpos( $content_func, 'media' ) ) )
    311316    wp_enqueue_style( 'media' );
    312317wp_enqueue_style( 'ie' );
     
    316321addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
    317322var userSettings = {'url':'<?php echo SITECOOKIEPATH; ?>','uid':'<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>','time':'<?php echo time(); ?>'};
    318 var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup';
     323var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
     324isRtl = <?php echo (int) is_rtl(); ?>;
    319325//]]>
    320326</script>
     
    349355 * {@internal Missing Short Description}}
    350356 *
    351  * @since unknown
     357 * @since 2.5.0
    352358 */
    353359function media_buttons() {
     
    380386
    381387function _media_button($title, $icon, $type) {
    382     return "<a href='" . esc_url( get_upload_iframe_src($type) ) . "' id='add_$type' class='thickbox' title='$title'><img src='" . esc_url( admin_url( $icon ) ) . "' alt='$title' /></a>";
     388    return "<a href='" . esc_url( get_upload_iframe_src($type) ) . "' id='add_$type' class='thickbox' title='$title'><img src='" . esc_url( admin_url( $icon ) ) . "' alt='$title' onclick='return false;' /></a>";
    383389}
    384390
     
    398404 * {@internal Missing Short Description}}
    399405 *
    400  * @since unknown
     406 * @since 2.5.0
    401407 *
    402408 * @return unknown
     
    485491 * {@internal Missing Short Description}}
    486492 *
    487  * @since unknown
     493 * @since 2.5.0
    488494 *
    489495 * @return unknown
     
    542548
    543549/**
    544  * {@internal Missing Short Description}}
    545  *
    546  * @since unknown
    547  *
    548  * @param unknown_type $file
    549  * @param unknown_type $post_id
    550  * @param unknown_type $desc
    551  * @return unknown
     550 * Download an image from the specified URL and attach it to a post.
     551 *
     552 * @since 2.6.0
     553 *
     554 * @param string $file The URL of the image to download
     555 * @param int $post_id The post ID the media is to be associated with
     556 * @param string $desc Optional. Description of the image
     557 * @return string|WP_Error Populated HTML img tag on success
    552558 */
    553559function media_sideload_image($file, $post_id, $desc = null) {
    554     if (!empty($file) ) {
     560    if ( ! empty($file) ) {
    555561        // Download file to temp location
    556         $tmp = download_url($file);
     562        $tmp = download_url( $file );
    557563
    558564        // Set variables for storage
     
    563569
    564570        // If error storing temporarily, unlink
    565         if ( is_wp_error($tmp) ) {
     571        if ( is_wp_error( $tmp ) ) {
    566572            @unlink($file_array['tmp_name']);
    567573            $file_array['tmp_name'] = '';
     
    569575
    570576        // do the validation and storage stuff
    571         $id = media_handle_sideload($file_array, $post_id, @$desc);
    572         $src = $id;
    573 
     577        $id = media_handle_sideload( $file_array, $post_id, $desc );
    574578        // If error storing permanently, unlink
    575579        if ( is_wp_error($id) ) {
     
    577581            return $id;
    578582        }
     583
     584        $src = wp_get_attachment_url( $id );
    579585    }
    580586
    581587    // Finally check to make sure the file has been saved, then return the html
    582     if ( !empty($src) ) {
    583         $alt = @$desc;
     588    if ( ! empty($src) ) {
     589        $alt = isset($desc) ? esc_attr($desc) : '';
    584590        $html = "<img src='$src' alt='$alt' />";
    585591        return $html;
     
    590596 * {@internal Missing Short Description}}
    591597 *
    592  * @since unknown
     598 * @since 2.5.0
    593599 *
    594600 * @return unknown
     
    648654 * {@internal Missing Short Description}}
    649655 *
    650  * @since unknown
     656 * @since 2.5.0
    651657 *
    652658 * @return unknown
     
    706712 * {@internal Missing Short Description}}
    707713 *
    708  * @since unknown
     714 * @since 2.5.0
    709715 *
    710716 * @return unknown
     
    761767 * {@internal Missing Short Description}}
    762768 *
    763  * @since unknown
     769 * @since 2.5.0
    764770 *
    765771 * @return unknown
     
    784790 * {@internal Missing Short Description}}
    785791 *
    786  * @since unknown
     792 * @since 2.5.0
    787793 *
    788794 * @return unknown
     
    805811 * Retrieve HTML for the image alignment radio buttons with the specified one checked.
    806812 *
    807  * @since unknown
     813 * @since 2.7.0
    808814 *
    809815 * @param unknown_type $post
     
    833839 * Retrieve HTML for the size radio buttons with the specified one checked.
    834840 *
    835  * @since unknown
     841 * @since 2.7.0
    836842 *
    837843 * @param unknown_type $post
    838  * @param unknown_type $checked
     844 * @param unknown_type $check
    839845 * @return unknown
    840846 */
     
    888894 * Retrieve HTML for the Link URL buttons with the default link type as specified.
    889895 *
    890  * @since unknown
     896 * @since 2.7.0
    891897 *
    892898 * @param unknown_type $post
     
    919925 * {@internal Missing Short Description}}
    920926 *
    921  * @since unknown
     927 * @since 2.5.0
    922928 *
    923929 * @param unknown_type $form_fields
     
    958964 * {@internal Missing Short Description}}
    959965 *
    960  * @since unknown
     966 * @since 2.5.0
    961967 *
    962968 * @param unknown_type $form_fields
     
    969975}
    970976
     977/**
     978 * {@internal Missing Short Description}}
     979 *
     980 * @since 2.8.0
     981 *
     982 * @param unknown_type $form_fields
     983 * @param unknown_type $post
     984 * @return unknown
     985 */
    971986function media_post_single_attachment_fields_to_edit( $form_fields, $post ) {
    972987    unset($form_fields['image_url']);
     
    977992 * {@internal Missing Short Description}}
    978993 *
    979  * @since unknown
     994 * @since 2.5.0
    980995 *
    981996 * @param unknown_type $post
     
    9991014 * {@internal Missing Short Description}}
    10001015 *
    1001  * @since unknown
     1016 * @since 2.5.0
    10021017 *
    10031018 * @param unknown_type $html
     
    10261041 * {@internal Missing Short Description}}
    10271042 *
    1028  * @since unknown
     1043 * @since 2.5.0
    10291044 *
    10301045 * @param unknown_type $post
     
    10801095    foreach ( get_attachment_taxonomies($post) as $taxonomy ) {
    10811096        $t = (array) get_taxonomy($taxonomy);
     1097        if ( ! $t['public'] )
     1098            continue;
    10821099        if ( empty($t['label']) )
    10831100            $t['label'] = $taxonomy;
     
    11141131 * the image attachment.
    11151132 *
    1116  * @since unknown
     1133 * @since 2.5.0
    11171134 *
    11181135 * @param int $post_id Optional. Post ID.
     
    11481165 * Retrieve HTML form for modifying the image attachment.
    11491166 *
    1150  * @since unknown
     1167 * @since 2.5.0
    11511168 *
    11521169 * @param int $attachment_id Attachment ID for modification.
     
    11641181    $post = get_post( $attachment_id );
    11651182
    1166     $default_args = array( 'errors' => null, 'send' => post_type_supports(get_post_type($post->post_parent), 'editor'), 'delete' => true, 'toggle' => true, 'show_title' => true );
     1183    $default_args = array( 'errors' => null, 'send' => $post->post_parent ? post_type_supports( get_post_type( $post->post_parent ), 'editor' ) : true, 'delete' => true, 'toggle' => true, 'show_title' => true );
    11671184    $args = wp_parse_args( $args, $default_args );
     1185    $args = apply_filters( 'get_media_item_args', $args );
    11681186    extract( $args, EXTR_SKIP );
    11691187
     
    12661284
    12671285    if ( $send )
    1268         $send = "<input type='submit' class='button' name='send[$attachment_id]' value='" . esc_attr__( 'Insert into Post' ) . "' />";
     1286        $send = get_submit_button( __( 'Insert into Post' ), 'button', "send[$attachment_id]", false );
    12691287    if ( $delete && current_user_can( 'delete_post', $attachment_id ) ) {
    12701288        if ( !EMPTY_TRASH_DAYS ) {
     
    13011319
    13021320    foreach ( $form_fields as $id => $field ) {
    1303         if ( $id{0} == '_' )
     1321        if ( $id[0] == '_' )
    13041322            continue;
    13051323
     
    13261344            $item .= $field[ $field['input'] ];
    13271345        elseif ( $field['input'] == 'textarea' ) {
    1328             $item .= "<textarea type='text' id='$name' name='$name' $aria_required>" . esc_html( $field['value'] ) . '</textarea>';
     1346            if ( user_can_richedit() ) { // textarea_escaped when user_can_richedit() = false
     1347                $field['value'] = esc_textarea( $field['value'] );
     1348            }
     1349            $item .= "<textarea type='text' id='$name' name='$name' $aria_required>" . $field['value'] . '</textarea>';
    13291350        } else {
    13301351            $item .= "<input type='text' class='text' id='$name' name='$name' value='" . esc_attr( $field['value'] ) . "' $aria_required />";
     
    13701391 * {@internal Missing Short Description}}
    13711392 *
    1372  * @since unknown
     1393 * @since 2.5.0
    13731394 */
    13741395function media_upload_header() {
     
    13841405 * {@internal Missing Short Description}}
    13851406 *
    1386  * @since unknown
     1407 * @since 2.5.0
    13871408 *
    13881409 * @param unknown_type $errors
    13891410 */
    13901411function media_upload_form( $errors = null ) {
    1391     global $type, $tab;
     1412    global $type, $tab, $pagenow;
    13921413
    13931414    $flash_action_url = admin_url('async-upload.php');
     
    14411462do_action('pre-upload-ui');
    14421463
    1443 if ( $flash ) : ?>
     1464if ( $flash ) :
     1465
     1466// Set the post params, which SWFUpload will post back with the file, and pass
     1467// them through a filter.
     1468$post_params = array(
     1469        "post_id" => $post_id,
     1470        "auth_cookie" => (is_ssl() ? $_COOKIE[SECURE_AUTH_COOKIE] : $_COOKIE[AUTH_COOKIE]),
     1471        "logged_in_cookie" => $_COOKIE[LOGGED_IN_COOKIE],
     1472        "_wpnonce" => wp_create_nonce('media-form'),
     1473        "type" => $type,
     1474        "tab" => $tab,
     1475        "short" => "1",
     1476);
     1477$post_params = apply_filters( 'swfupload_post_params', $post_params );
     1478$p = array();
     1479foreach ( $post_params as $param => $val )
     1480    $p[] = "\t\t'$param' : '$val'";
     1481$post_params_str = implode( ", \n", $p );
     1482
     1483// #8545. wmode=transparent cannot be used with SWFUpload
     1484if ( 'media-new.php' == $pagenow ) {
     1485    $upload_image_path = get_user_option( 'admin_color' );
     1486    if ( 'classic' != $upload_image_path )
     1487        $upload_image_path = 'fresh';
     1488    $upload_image_path = admin_url( 'images/upload-' . $upload_image_path . '.png?ver=20101205' );
     1489} else {
     1490    $upload_image_path = includes_url( 'images/upload.png?ver=20100531' );
     1491}
     1492
     1493?>
    14441494<script type="text/javascript">
    14451495//<![CDATA[
     
    14521502            button_width: "132",
    14531503            button_text_top_padding: 3,
    1454             button_image_url: '<?php echo includes_url('images/upload.png?ver=20100531'); ?>',
     1504            button_image_url: '<?php echo $upload_image_path; ?>',
    14551505            button_placeholder_id: "flash-browse-button",
    14561506            upload_url : "<?php echo esc_attr( $flash_action_url ); ?>",
     
    14591509            file_types: "<?php echo apply_filters('upload_file_glob', '*.*'); ?>",
    14601510            post_params : {
    1461                 "post_id" : "<?php echo $post_id; ?>",
    1462                 "auth_cookie" : "<?php echo (is_ssl() ? $_COOKIE[SECURE_AUTH_COOKIE] : $_COOKIE[AUTH_COOKIE]); ?>",
    1463                 "logged_in_cookie": "<?php echo $_COOKIE[LOGGED_IN_COOKIE]; ?>",
    1464                 "_wpnonce" : "<?php echo wp_create_nonce('media-form'); ?>",
    1465                 "type" : "<?php echo $type; ?>",
    1466                 "tab" : "<?php echo $tab; ?>",
    1467                 "short" : "1"
     1511                <?php echo $post_params_str; ?>
    14681512            },
    14691513            file_size_limit : "<?php echo $max_upload_size; ?>b",
     
    14731517            upload_progress_handler : uploadProgress,
    14741518            upload_error_handler : uploadError,
    1475             upload_success_handler : uploadSuccess,
     1519            upload_success_handler : <?php echo apply_filters( 'swfupload_success_handler', 'uploadSuccess' ); ?>,
    14761520            upload_complete_handler : uploadComplete,
    14771521            file_queue_error_handler : fileQueueError,
     
    15071551<?php do_action('pre-html-upload-ui'); ?>
    15081552    <p id="async-upload-wrap">
    1509     <label class="screen-reader-text" for="async-upload"><?php _e('Upload'); ?></label>
    1510     <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php esc_attr_e('Upload'); ?>" /> <a href="#" onclick="try{top.tb_remove();}catch(e){}; return false;"><?php _e('Cancel'); ?></a>
     1553        <label class="screen-reader-text" for="async-upload"><?php _e('Upload'); ?></label>
     1554        <input type="file" name="async-upload" id="async-upload" />
     1555        <?php submit_button( __( 'Upload' ), 'button', 'html-upload', false ); ?>
     1556        <a href="#" onclick="try{top.tb_remove();}catch(e){}; return false;"><?php _e('Cancel'); ?></a>
    15111557    </p>
    15121558    <div class="clear"></div>
    15131559    <p class="media-upload-size"><?php printf( __( 'Maximum upload file size: %d%s' ), $upload_size_unit, $sizes[$u] ); ?></p>
    15141560    <?php if ( is_lighttpd_before_150() ): ?>
    1515     <p><?php _e('If you want to use all capabilities of the uploader, like uploading multiple files at once, please upgrade to lighttpd 1.5.'); ?></p>
     1561    <p><?php _e('If you want to use all capabilities of the uploader, like uploading multiple files at once, please update to lighttpd 1.5.'); ?></p>
    15161562    <?php endif;?>
    15171563<?php do_action('post-html-upload-ui', $flash); ?>
     
    15241570 * {@internal Missing Short Description}}
    15251571 *
    1526  * @since unknown
     1572 * @since 2.5.0
    15271573 *
    15281574 * @param unknown_type $type
     
    15401586
    15411587<form enctype="multipart/form-data" method="post" action="<?php echo esc_attr($form_action_url); ?>" class="media-upload-form type-form validate" id="<?php echo $type; ?>-form">
    1542 <input type="submit" class="hidden" name="save" value="" />
     1588<?php submit_button( '', 'hidden', 'save', false ); ?>
    15431589<input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" />
    15441590<?php wp_nonce_field('media-form'); ?>
     
    15731619</div>
    15741620<p class="savebutton ml-submit">
    1575 <input type="submit" class="button" name="save" value="<?php esc_attr_e( 'Save all changes' ); ?>" />
     1621<?php submit_button( __( 'Save all changes' ), 'button', 'save', false ); ?>
    15761622</p>
    15771623</form>
     
    15821628 * {@internal Missing Short Description}}
    15831629 *
    1584  * @since unknown
     1630 * @since 2.7.0
    15851631 *
    15861632 * @param unknown_type $type
     
    17001746 * {@internal Missing Short Description}}
    17011747 *
    1702  * @since unknown
     1748 * @since 2.5.0
    17031749 *
    17041750 * @param unknown_type $errors
     
    17531799
    17541800<p class="ml-submit">
    1755 <input type="submit" class="button savebutton" style="display:none;" name="save" id="save-all" value="<?php esc_attr_e( 'Save all changes' ); ?>" />
     1801<?php submit_button( __( 'Save all changes' ), 'button savebutton', 'save', false, array( 'id' => 'save-all', 'style' => 'display: none;' ) ); ?>
    17561802<input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" />
    17571803<input type="hidden" name="type" value="<?php echo esc_attr( $GLOBALS['type'] ); ?>" />
     
    18161862    <td class="field">
    18171863        <select id="columns" name="columns">
     1864            <option value="1">1</option>
    18181865            <option value="2">2</option>
    18191866            <option value="3" selected="selected">3</option>
     
    18411888 * {@internal Missing Short Description}}
    18421889 *
    1843  * @since unknown
     1890 * @since 2.5.0
    18441891 *
    18451892 * @param unknown_type $errors
     
    18761923    <label class="screen-reader-text" for="media-search-input"><?php _e('Search Media');?>:</label>
    18771924    <input type="text" id="media-search-input" name="s" value="<?php the_search_query(); ?>" />
    1878     <input type="submit" value="<?php esc_attr_e( 'Search Media' ); ?>" class="button" />
     1925    <?php submit_button( __( 'Search Media' ), 'button', '', false ); ?>
    18791926</p>
    18801927
     
    19091956        $class = ' class="current"';
    19101957
    1911     $type_links[] = "<li><a href='" . esc_url(add_query_arg(array('post_mime_type'=>$mime_type, 'paged'=>false))) . "'$class>" . sprintf(_n($label[2][0], $label[2][1], $num_posts[$mime_type]), "<span id='$mime_type-counter'>" . number_format_i18n( $num_posts[$mime_type] ) . '</span>') . '</a>';
    1912 }
    1913 echo implode(' | </li>', $type_links) . '</li>';
     1958    $type_links[] = "<li><a href='" . esc_url(add_query_arg(array('post_mime_type'=>$mime_type, 'paged'=>false))) . "'$class>" . sprintf( translate_nooped_plural( $label[2], $num_posts[$mime_type] ), "<span id='$mime_type-counter'>" . number_format_i18n( $num_posts[$mime_type] ) . '</span>') . '</a>';
     1959}
     1960echo implode(' | </li>', apply_filters( 'media_upload_mime_type_links', $type_links ) ) . '</li>';
    19141961unset($type_links);
    19151962?>
     
    19632010<?php } ?>
    19642011
    1965 <input type="submit" id="post-query-submit" value="<?php echo esc_attr( __( 'Filter &#187;' ) ); ?>" class="button-secondary" />
     2012<?php submit_button( __( 'Filter &#187;' ), 'secondary', 'post-query-submit', false ); ?>
    19662013
    19672014</div>
     
    19932040</div>
    19942041<p class="ml-submit">
    1995 <input type="submit" class="button savebutton" name="save" value="<?php esc_attr_e( 'Save all changes' ); ?>" />
     2042<?php submit_button( __( 'Save all changes' ), 'button savebutton', 'save', false ); ?>
    19962043<input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" />
    19972044</p>
     
    20032050 * {@internal Missing Short Description}}
    20042051 *
    2005  * @since unknown
     2052 * @since 2.7.0
    20062053 *
    20072054 * @return unknown
     
    20852132 * {@internal Missing Short Description}}
    20862133 *
    2087  * @since unknown
     2134 * @since 2.7.0
    20882135 *
    20892136 * @return unknown
     
    21152162 * {@internal Missing Short Description}}
    21162163 *
    2117  * @since unknown
     2164 * @since 2.7.0
    21182165 *
    21192166 * @return unknown
     
    21452192 * {@internal Missing Short Description}}
    21462193 *
    2147  * @since unknown
     2194 * @since 2.7.0
    21482195 *
    21492196 * @return unknown
     
    21912238            <td></td>
    21922239            <td>
    2193                 <input type="submit" class="button" name="insertonlybutton" value="' . esc_attr__('Insert into Post') . '" />
     2240                ' . get_submit_button( __( 'Insert into Post' ), 'button', 'insertonlybutton', false ) . '
    21942241            </td>
    21952242        </tr>
     
    22022249 * Support a GET parameter for disabling the flash uploader.
    22032250 *
    2204  * @since unknown
     2251 * @since 2.6.0
    22052252 *
    22062253 * @param unknown_type $flash
     
    22182265 * {@internal Missing Short Description}}
    22192266 *
    2220  * @since unknown
     2267 * @since 2.6.0
    22212268 */
    22222269function media_upload_flash_bypass() {
     
    22292276 * {@internal Missing Short Description}}
    22302277 *
    2231  * @since unknown
     2278 * @since 2.6.0
    22322279 */
    22332280function media_upload_html_bypass($flash = true) {
     
    22502297 * Make sure the GET parameter sticks when we submit a form.
    22512298 *
    2252  * @since unknown
     2299 * @since 2.6.0
    22532300 *
    22542301 * @param unknown_type $url
Note: See TracChangeset for help on using the changeset viewer.