[wp-trac] [WordPress Trac] #47725: wp_parse_args_deep
WordPress Trac
noreply at wordpress.org
Wed Jul 17 23:38:24 UTC 2019
#47725: wp_parse_args_deep
-------------------------+------------------------
Reporter: tazotodua | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: General | Version: trunk
Severity: normal | Resolution: duplicate
Keywords: | Focuses:
-------------------------+------------------------
Changes (by pento):
* status: new => closed
* resolution: => duplicate
* milestone: Awaiting Review =>
Comment:
Thank you for the suggestion and patch, @tazotodua!
This is an interesting idea, but as described in #19888, I don't think
it's a good option for core.
For the example you describe in your post, you could just use
`array_merge_recursive()`, instead. `wp_parse_args()` is mostly just a
helper function that runs `wp_parse_str()` first (in case the args are
passed as a string), then runs an `array_merge()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47725#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list