[wp-trac] [WordPress Trac] #22769: Hidden fields via attachment_fields_to_edit are missing

WordPress Trac noreply at wordpress.org
Thu Dec 6 02:48:06 UTC 2012


#22769: Hidden fields via attachment_fields_to_edit are missing
------------------------------+--------------------
 Reporter:  nacin             |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.5
Component:  Media             |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+--------------------

Comment (by nacin):

 Test code:
 {{{
 add_filter( 'attachment_fields_to_edit', function( $fields ) {
     $fields['hidden_field_name'] = array( 'input' => 'hidden', 'value' =>
 'value of field' );
     return $fields;
 } );
 }}}

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


More information about the wp-trac mailing list