[wp-trac] [WordPress Trac] #50343: [PHP 8] Fix deprecation notices for optional function parameters declared before required parameter.
WordPress Trac
noreply at wordpress.org
Sat Aug 15 13:44:16 UTC 2020
#50343: [PHP 8] Fix deprecation notices for optional function parameters declared
before required parameter.
-------------------------------------------+-------------------------------
Reporter: ayeshrajans | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.6
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch php8 has-unit-tests | Focuses: coding-standards
-------------------------------------------+-------------------------------
Comment (by SergeyBiryukov):
In [changeset:"48795" 48795]:
{{{
#!CommitTicketReference repository="" revision="48795"
Menus: Make the `$object_id` parameter of `_wp_delete_post_menu_item()`
required, for consistency with `_wp_delete_tax_menu_item()`.
The function is private (only intended for core usage) and is hooked to
the `delete_post` action, which always passes a non-zero post ID.
Follow-up to [14295], [48794].
See #50343.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50343#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list