[wp-trac] [WordPress Trac] #51720: Make wp_array_get internal for now. Add tests to _wp_array_get; (was: Make wp_array_get internal for now)

WordPress Trac noreply at wordpress.org
Wed Nov 11 15:29:37 UTC 2020


#51720: Make wp_array_get internal for now. Add tests to _wp_array_get;
------------------------------+---------------------
 Reporter:  jorgefilipecosta  |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  5.6
Component:  General           |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+---------------------
Description changed by jorgefilipecosta:

Old description:

> According to feedback received at #51461. This ticket contains a patch to
> make wp_array_get internal.
> After more core code uses it we can decide if the function is valuable
> and something we want to expose or not.

New description:

 According to feedback received at #51461. This ticket contains a patch to
 make wp_array_get internal.
 After more core code uses it we can decide if the function is valuable and
 something we want to expose or not.
 This Patch also adds test cases and does some enhancements to the function
 wp_array_get to make it more similar to lodash namely the default value
 and the way null is handled.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51720#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list