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
1229      global $type, $tab;
1230
1231      $flash_action_url = admin_url('async-upload.php');
1232
1233      // If Mac and mod_security, no Flash. :(
1234      $flash = true;
1235      if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && apache_mod_loaded('mod_security') )
1236           $flash = false;
1237
1238      $flash = apply_filters('flash_uploader', $flash);
1239      $post_id = isset($_REQUEST['post_id']) ? intval($_REQUEST['post_id']) : 0;
1240
1241 ?>
1242 <div id="media-upload-notice">
1243 <?php if (isset($errors['upload_notice']) ) { ?>
1244      <?php echo $errors['upload_notice']; ?>
1245 <?php } ?>
1246 </div>
1247 <div id="media-upload-error">