[wp-trac] [WordPress Trac] #42925: register_setting backwards compatibility when function defined after registration
WordPress Trac
noreply at wordpress.org
Tue Oct 6 05:51:37 UTC 2020
#42925: register_setting backwards compatibility when function defined after
registration
--------------------------+----------------------
Reporter: ItayXD | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 4.9.1
Severity: normal | Resolution: wontfix
Keywords: | Focuses:
--------------------------+----------------------
Changes (by markparnell):
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
Thanks for the report @ItayXD and sorry it's taken so long for you to get
a response! What you're asking for is making improvements to what is
effectively a deprecated API - and I'm not sure it's even possible with
PHP.
You should just use the newer array format for the `$args` parameter to
pass your callback instead.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42925#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list