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

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 10 13:12:10 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    |
-------------------------+------------------------------

Comment (by westi):

 Replying to [comment:6 dllh]:
 > 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.

 I forgot about the return complicating things so I think the best thing is
 an action inside the if like in the latest patch which makes this simple
 to override with a remove action call.

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


More information about the wp-trac mailing list