[wp-trac] [WordPress Trac] #60700: Coding Standards fixes for WP 6.6
WordPress Trac
noreply at wordpress.org
Thu May 9 15:15:02 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):
In [changeset:"58124" 58124]:
{{{
#!CommitTicketReference repository="" revision="58124"
Coding Standards: Use strict comparison in `wp-includes/nav-menu-
template.php`.
Includes correcting a conditional in `_wp_menu_item_classes_by_context()`
where `$parent_item->object`, which contains a string like `page`, was
erroneously compared to the queried object's ID. The correct property to
compare is `$parent_item->object_id`.
Follow-up to [14876], [14923], [14942], [15302], [16731], [16742],
[22302], [47550], [47557], [47808].
Props aristath, poena, afercia, SergeyBiryukov.
See #60700.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60700#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list