[wp-trac] [WordPress Trac] #60700: Coding Standards fixes for WP 6.6
WordPress Trac
noreply at wordpress.org
Fri Mar 22 23:22:08 UTC 2024
#60700: Coding Standards fixes for WP 6.6
--------------------------------------+-------------------------------
Reporter: mukesh27 | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.6
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: coding-standards
--------------------------------------+-------------------------------
Comment (by knutsp):
Replying to [comment:13 SergeyBiryukov]:
> Replying to [comment:10 knutsp]:
> > Just wondering. The expression in line 127
> > {{{#!php
> > $bookmark->link_image && $parsed_args['show_images']
> > }}}
> > seems to be a boolean, because it contains a boolean operator. How can
it ever be identical to an empty string?
>
> Unless I'm missing something, the `'' !== $bookmark->link_image` part
should be evaluated first.
Of course it will. I was missing that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60700#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list