Opened 2 years ago
Closed 2 years ago
#53264 closed defect (bug) (fixed)
_wp_array_get() example incorrect
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.8 | Priority: | normal |
Severity: | minor | Version: | |
Component: | General | Keywords: | good-first-bug has-patch |
Focuses: | docs | Cc: |
Description
The php syntax in the _wp_array_get()
example is invalid:
_wp_array_get( $array, array( 'a', 'b', 'c' );
The final )
is missing, creating a ticket here as the example is pulled from PHPDoc directly.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Just noting that this also applies to
_wp_array_set()
introduced in [50958] / #53175.