#60700 closed task (blessed) (fixed)
Coding Standards fixes for WP 6.6
Reported by: | mukesh27 | Owned by: | |
---|---|---|---|
Milestone: | 6.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch has-unit-tests |
Focuses: | coding-standards | Cc: |
Change History (34)
This ticket was mentioned in PR #3873 on WordPress/wordpress-develop by @SergeyBiryukov.
9 months ago
#2
- Keywords has-patch has-unit-tests added
#10
follow-up:
↓ 13
@
9 months ago
Just wondering. The expression in line 127
$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?
#13
in reply to:
↑ 10
;
follow-up:
↓ 14
@
9 months ago
Replying to knutsp:
Just wondering. The expression in line 127
$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.
#14
in reply to:
↑ 13
@
9 months ago
Replying to SergeyBiryukov:
Replying to knutsp:
Just wondering. The expression in line 127
$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.
#32
@
5 months ago
- Resolution set to fixed
- Status changed from new to closed
The last scheduled RC is happening within <= 1 hour, closing this ticket as fixed.
Thank you everyone for contributing to improving the code to the coding standards :)
#61607 is now open for the 6.7 cycle.
This ticket was mentioned in Slack in #core by tanner. View the logs.
5 months ago
@SergeyBiryukov commented on PR #3873:
3 months ago
#34
This will need tests before it can be merged:
Indeed, this is basically still a draft where I cherry-pick certain changes after a closer review, making sure they are covered by new or existing tests. I will investigate anything related to wp_parse_args()
and WP_Query
, thanks!
In 57829: