[wp-trac] [WordPress Trac] #23089: Rewrite a confusing condition in default-widgets.php
WordPress Trac
noreply at wordpress.org
Fri Jan 25 04:09:14 UTC 2013
#23089: Rewrite a confusing condition in default-widgets.php
-------------------------+-----------------------
Reporter: alexvorn2 | Owner:
Type: enhancement | Status: reopened
Priority: lowest | Milestone: 3.6
Component: Widgets | Version:
Severity: minor | Resolution:
Keywords: has-patch |
-------------------------+-----------------------
Comment (by SergeyBiryukov):
Replying to [comment:11 kovshenin]:
> I rarely use the ternary operator, but when I do, I always put brackets
around the condition
Yes, I prefer that form too. However, the form without the brackets
appears to be prevailing throughout the core.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23089#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list