[wp-trac] [WordPress Trac] #22664: attachment_fields_to_save: parameter missing indexes

WordPress Trac noreply at wordpress.org
Sat Dec 1 15:19:05 UTC 2012


#22664: attachment_fields_to_save: parameter missing indexes
--------------------------+------------------------------
 Reporter:  ZaneMatthew   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------
Changes (by toscho):

 * cc: info@… (added)


Comment:

 Zane, your sample code cannot get the second parameter. You need:


 {{{
 add_action('attachment_fields_to_save', 'my_func', 10, 2 );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22664#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list