[wp-trac] [WordPress Trac] #18764: no CSS ID or class or hook for themes/plugins to modify "max file size" paragraph in media_upload_form()

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 21 14:09:15 UTC 2011


#18764: no CSS ID or class or hook for themes/plugins to modify "max file size"
paragraph in media_upload_form()
--------------------------+------------------
 Reporter:  jaredh123     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.3
Component:  Media         |     Version:  3.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by scottbasgaard):

 I agree with you jared.

 I think that that would be plugin/theme territory. With the patch I
 submitted above you could do the following. I.e In a functions.php file:


 {{{
 function custom_media_upload_max_file_size_message() {
         // Do your custom message here.
 }
 remove_action('post-upload-ui', 'media_upload_max_file_size_message');
 add_action('post-upload-ui', 'custom_media_upload_max_file_size_message');
 }}}

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


More information about the wp-trac mailing list