Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: flash_uploader

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
874      global $type, $tab;
875
876      $flash_action_url = admin_url('async-upload.php');
877
878      // If Mac and mod_security, no Flash. :(
879      $flash = true;
880      if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && apache_mod_loaded('mod_security') )
881           $flash = false;
882
883      $flash = apply_filters('flash_uploader', $flash);
884      $post_id = intval($_REQUEST['post_id']);
885
886 ?>
887 <input type='hidden' name='post_id' value='<?php echo (int) $post_id; ?>' />
888 <div id="media-upload-notice">
889 <?php if (isset($errors['upload_notice']) ) { ?>
890      <?php echo $errors['upload_notice']; ?>
891 <?php } ?>
892 </div>