[wp-trac] [WordPress Trac] #21179: filter error message displayed when a site is over quota

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 9 18:44:44 UTC 2012


#21179: filter error message displayed when a site is over quota
-------------------------+------------------------------
 Reporter:  jkudish      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:  3.4.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------
Changes (by dllh):

 * cc: daryl@… (added)


Comment:

 21179.patch implements westi's proposed solution, with one twist. Since
 the original code does a return inline if multisite and no space left and
 actions can't really do returns, I've also added a filter that'll do the
 inline return if true. The function we fire on {{{pre-upload-ui}}} then
 applies the filter with a {{{__return_true}}} value. Not sure this is the
 best approach, but it's the only sane way I could think of short of just
 using a filter inside the current check.

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


More information about the wp-trac mailing list