[wp-meta] [Making WordPress.org] #1941: WP_Error empty code parameter
Making WordPress.org
noreply at wordpress.org
Wed Aug 31 12:49:21 UTC 2016
#1941: WP_Error empty code parameter
---------------------+-----------------
Reporter: zw7 | Owner:
Type: defect | Status: new
Priority: high | Milestone:
Component: General | Keywords:
---------------------+-----------------
While debugging the function wp_mail i found a problem within WP_Error
class.
On the constructor, we ignore $message and $data parameters if $code is
empty, yet the php function Exception::getCode() returns 0 if the
exception is thrown without a code.
This is the case for the whole phpmailer library and who knows how many
others :)
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1941>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list