[wp-trac] [WordPress Trac] #61987: Removed Unused Arguments From _wp_filter_build_unique_id Function
WordPress Trac
noreply at wordpress.org
Tue Sep 10 23:08:15 UTC 2024
#61987: Removed Unused Arguments From _wp_filter_build_unique_id Function
--------------------------------------+------------------------------
Reporter: wpdebuglog | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by jrf):
I agree with @dd32 and @peterwilsoncc. While I kind of like Peter's
suggestion for renaming the parameters, even though WP doesn't officially
support named parameters, this ''could'' affect function calls from
plugins which have decided to ignore that fact.
What about adding a default value of `0` for the `$priority` parameter
though ? That would make the parameter optional and could allow for
simplifying calls to the function by removing the need to pass ''one'' of
the two deprecated/unused parameters.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61987#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list