[wp-trac] [WordPress Trac] #34659: Whitelist for validation functions which only accept one argument
WordPress Trac
noreply at wordpress.org
Sun May 23 04:06:59 UTC 2021
#34659: Whitelist for validation functions which only accept one argument
-------------------------------------+-------------------------
Reporter: danielbachhuber | Owner: rmccue
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: REST API | Version: 4.7
Severity: normal | Resolution: worksforme
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+-------------------------
Comment (by simongcc):
(just reading from REST API Handbook)
Is it a good idea to use func_get_arg() to get the number of arguments
passed?
This functions seems available since PHP 4, so compatibility might not be
a problem.
With this, less explicit work to do by specifying the number of arguments.
While development teams could dynamically adjust inside the core.
Not sure if there is other concerns that I did not aware of.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34659#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list