[wp-trac] [WordPress Trac] #10665: Protect XMLRPC against failures when WP_DEBUG enabled
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 20 19:15:23 UTC 2009
#10665: Protect XMLRPC against failures when WP_DEBUG enabled
--------------------------+-------------------------------------------------
Reporter: redsweater | Owner: josephscott
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: XML-RPC | Version:
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Comment(by redsweater):
I altered the patch to be especially careful that the variables being
initialized are set to the same default values they would have received
previously. In particular, the problematic array lookups yield initial
values of NULL, which I now set explicitly as the fallback value in case
the array items don't exist.
I switched from using "!empty" to "isset", so that the logic is identical
to before: if the array element is set at all, it is used to initialize
the variable. If it's not set, then NULL is used. For categories, an
empty array is the default initialized value, which matches previous
behavior as well.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10665#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list