[wp-trac] [WordPress Trac] #35069: Allow short-circuiting wp_mail

WordPress Trac noreply at wordpress.org
Thu Jan 7 01:11:37 UTC 2016


#35069: Allow short-circuiting wp_mail
--------------------------------------+------------------
 Reporter:  DvanKooten                |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  low                       |   Milestone:  4.5
Component:  Mail                      |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------
Changes (by johnbillion):

 * priority:  normal => low
 * focuses:  performance =>


Comment:

 I don't feel too strongly either way about this. It introduces another
 filter that we'll need to maintain back-compat for, but that's not a huge
 issue.

 When the short-circuit kicks in, it should explicitly return boolean
 `false`, not `$atts`. Unless there's a reason not to?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35069#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list