Changeset 8912 for trunk/wp-admin/includes/media.php
- Timestamp:
- 09/17/2008 12:40:10 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/media.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r8853 r8912 692 692 'helps' => __('Enter a link URL or click above for presets.'), 693 693 ), 694 'menu_order' => array(694 'menu_order' => array( 695 695 'label' => __('Order'), 696 696 'value' => $edit_post->menu_order … … 1492 1492 // support a GET parameter for disabling the flash uploader 1493 1493 function 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; 1497 1497 } 1498 1498 … … 1500 1500 1501 1501 function 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>'; 1505 1505 } 1506 1506 … … 1508 1508 1509 1509 function 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 Flash1513 printf( __('You are using the Browser uploader. Try the <a href="%s">Flash uploader</a> instead.'), clean_url(add_query_arg('flash', 1)) );1514 else1515 // the user probably doesn't have Flash1516 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>'; 1519 1519 } 1520 1520 … … 1524 1524 // make sure the GET parameter sticks when we submit a form 1525 1525 function 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; 1529 1529 } 1530 1530
Note: See TracChangeset
for help on using the changeset viewer.