WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/17/08 00:40:10 (9 years ago)
Author:
ryan
Message:

phpdoc for wp-admin/includes from jacobsantos. see #7527

File:
1 edited

Legend:

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

    r8853 r8912  
    692692            'helps'      => __('Enter a link URL or click above for presets.'), 
    693693        ), 
    694         'menu_order'   => array( 
     694        'menu_order'   => array( 
    695695            'label'      => __('Order'), 
    696696            'value'      => $edit_post->menu_order 
     
    14921492// support a GET parameter for disabling the flash uploader 
    14931493function media_upload_use_flash($flash) { 
    1494         if ( array_key_exists('flash', $_REQUEST) ) 
    1495                 $flash = !empty($_REQUEST['flash']); 
    1496         return $flash; 
     1494    if ( array_key_exists('flash', $_REQUEST) ) 
     1495        $flash = !empty($_REQUEST['flash']); 
     1496    return $flash; 
    14971497} 
    14981498 
     
    15001500 
    15011501function media_upload_flash_bypass() { 
    1502         echo '<p class="upload-flash-bypass">'; 
    1503         printf( __('You are using the Flash uploader.  Problems?  Try the <a href="%s">Browser uploader</a> instead.'), clean_url(add_query_arg('flash', 0)) ); 
    1504         echo '</p>'; 
     1502    echo '<p class="upload-flash-bypass">'; 
     1503    printf( __('You are using the Flash uploader.  Problems?  Try the <a href="%s">Browser uploader</a> instead.'), clean_url(add_query_arg('flash', 0)) ); 
     1504    echo '</p>'; 
    15051505} 
    15061506 
     
    15081508 
    15091509function media_upload_html_bypass() { 
    1510         echo '<p class="upload-html-bypass">'; 
    1511         if ( array_key_exists('flash', $_REQUEST) ) 
    1512                 // the user manually selected the browser uploader, so let them switch back to Flash 
    1513                 printf( __('You are using the Browser uploader.  Try the <a href="%s">Flash uploader</a> instead.'), clean_url(add_query_arg('flash', 1)) ); 
    1514         else 
    1515                 // the user probably doesn't have Flash 
    1516                 printf( __('You are using the Browser uploader.') ); 
    1517  
    1518         echo '</p>'; 
     1510    echo '<p class="upload-html-bypass">'; 
     1511    if ( array_key_exists('flash', $_REQUEST) ) 
     1512        // the user manually selected the browser uploader, so let them switch back to Flash 
     1513        printf( __('You are using the Browser uploader.  Try the <a href="%s">Flash uploader</a> instead.'), clean_url(add_query_arg('flash', 1)) ); 
     1514    else 
     1515        // the user probably doesn't have Flash 
     1516        printf( __('You are using the Browser uploader.') ); 
     1517 
     1518    echo '</p>'; 
    15191519} 
    15201520 
     
    15241524// make sure the GET parameter sticks when we submit a form 
    15251525function media_upload_bypass_url($url) { 
    1526         if ( array_key_exists('flash', $_REQUEST) ) 
    1527                 $url = add_query_arg('flash', intval($_REQUEST['flash'])); 
    1528         return $url; 
     1526    if ( array_key_exists('flash', $_REQUEST) ) 
     1527        $url = add_query_arg('flash', intval($_REQUEST['flash'])); 
     1528    return $url; 
    15291529} 
    15301530 
Note: See TracChangeset for help on using the changeset viewer.