[wp-trac] [WordPress Trac] #10518: Make the post editing form file upload friendly

WordPress Trac wp-trac at lists.automattic.com
Sun Nov 21 11:52:44 UTC 2010


#10518: Make the post editing form file upload friendly
-----------------------------+----------------------------------------------
  Reporter:  mark-k          |        Type:  feature request
    Status:  closed          |    Priority:  low            
 Milestone:  Future Release  |   Component:  Media          
   Version:  2.8             |    Severity:  minor          
Resolution:  worksforme      |    Keywords:                 
-----------------------------+----------------------------------------------
Changes (by johnbillion):

  * status:  new => closed
  * resolution:  => worksforme


Comment:

 Plugins can add the form encoding type using the `post_edit_form_tag`
 action.

 Example:

 {{{
 function my_enc_type() {
     echo ' enctype="multipart/form-data"';
 }
 add_action('post_edit_form_tag','my_enc_type');
 }}}

 Not sure why this is an action instead of a filter, but there we go.

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


More information about the wp-trac mailing list