﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
22664,attachment_fields_to_edit: parameter missing indexes,ZaneMatthew,,"When using the hook ""attachment_fields_to_save "" the second parameter ($attachments) no longer has the same indexes at it does on WordPress' stable release.

You can reproduce with the following, make a plugin and drop this in then upload an attachment and click ""save"".


{{{
 function my_func( $post, $attachment ){
   print '<pre>'; 
   print_r( $attachment ); 
   print '</pre>'; 
   die();
} 
add_action('attachment_fields_to_save', 'my_func');
}}}



Stable WordPress produces this:

{{{
Array (
  [menu_order] => 0 
  [post_title] => 
  [image_alt] => 
  [post_excerpt] => 
  [post_content] => 
  [url] =>
)
}}}

",defect (bug),closed,normal,,Media,3.5,normal,invalid,,info@…
