Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: swfupload_post_params

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
1494 $post_params = array(
1495           "post_id" => $post_id,
1496           "auth_cookie" => (is_ssl() ? $_COOKIE[SECURE_AUTH_COOKIE] : $_COOKIE[AUTH_COOKIE]),
1497           "logged_in_cookie" => $_COOKIE[LOGGED_IN_COOKIE],
1498           "_wpnonce" => wp_create_nonce('media-form'),
1499           "type" => $type,
1500           "tab" => $tab,
1501           "short" => "1",
1502 );
1503 $post_params = apply_filters( 'swfupload_post_params', $post_params );
1504 $p = array();
1505 foreach ( $post_params as $param => $val )
1506      $p[] = "\t\t'$param' : '$val'";
1507 $post_params_str = implode( ", \n", $p );
1508
1509 // #8545. wmode=transparent cannot be used with SWFUpload
1510 if ( 'media-new.php' == $pagenow ) {
1511      $upload_image_path = get_user_option( 'admin_color' );
1512      if ( 'classic' != $upload_image_path )