[wp-trac] [WordPress Trac] #14184: HTTP API is not allowing '0' for headers and cookies.
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 18 19:28:03 UTC 2012
#14184: HTTP API is not allowing '0' for headers and cookies.
--------------------------+---------------------
Reporter: mailnew2ster | Owner: dd32
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.5
Component: HTTP | Version:
Severity: normal | Resolution: fixed
Keywords: |
--------------------------+---------------------
Comment (by mailnew2ster):
What about
{{{
empty($r['body'])
}}}
?
It makes your code fail to process a "0" body. Maybe there is near to zero
chance one would actually send a request with 'body' equal to "0", but
it's possible.
I don't like this ''empty'' construct, it's misleading. It defines "0" as
empty, while it's a string with a length of 1 char, not so empty, is it?
I would avoid using it in my project. My 2 cents.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14184#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list