[wp-trac] [WordPress Trac] #60700: Coding Standards fixes for WP 6.6
WordPress Trac
noreply at wordpress.org
Fri Mar 22 22:56:50 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 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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60700#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list