[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:00:29 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 jaredh123):

 This looks good.  Could we make one more change and just put a class on
 each of the two paragraphs in the media_upload_max_file_size_message()
 func?

 It would be a common scenario where a plugin or theme author would like to
 keep the max-file size message, but the "you may add titles and
 descriptions" would not make any sense.  With this patch, a developer
 would have to still resort to hacky javascript or non-backward compatible
 advanced CSS3 just to hide that one paragraph, or be forced remove
 function from the post-upload-ui action entirely.

 Adding a couple of simple classes would solve this.  See my modification
 ot scottbasgaard's patch attached.

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


More information about the wp-trac mailing list