Ticket #6278: 6278.diff
File 6278.diff, 1.1 KB (added by , 15 years ago) |
---|
-
wp-admin/includes/media.php
778 778 779 779 $flash_action_url = get_option('siteurl') . "/wp-admin/async-upload.php"; 780 780 781 // If Mac and mod_security, no Flash. :( 782 if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && 'on' == strtolower(apache_getenv('MODSEC_ENABLE')) ) 783 $flash = false; 784 else 785 $flash = true; 786 781 787 $post_id = intval($_REQUEST['post_id']); 782 788 783 789 ?> … … 787 793 <?php echo $errors['upload_error']->get_error_message(); ?> 788 794 <?php } ?> 789 795 </div> 796 <?php if ( $flash ) : ?> 790 797 <script type="text/javascript"> 791 798 <!-- 792 799 jQuery(function($){ … … 828 835 <p><?php _e('After a file has been uploaded, you can add titles and descriptions.'); ?></p> 829 836 </div> 830 837 838 <?php endif; // $flash ?> 839 831 840 <div id="html-upload-ui"> 832 841 <p> 833 842 <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" value="<?php echo attribute_escape(__('Upload')); ?>" /> <a href="#" onClick="return top.tb_remove();"><?php _e('Cancel'); ?></a>