[wp-trac] [WordPress Trac] #53264: _wp_array_get() example incorrect

WordPress Trac noreply at wordpress.org
Mon May 24 04:25:18 UTC 2021


#53264: _wp_array_get() example incorrect
--------------------------+-----------------------------
 Reporter:  dd32          |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  minor         |   Keywords:  good-first-bug
  Focuses:  docs          |
--------------------------+-----------------------------
 The php syntax in the `_wp_array_get()`
 [https://developer.wordpress.org/reference/functions/_wp_array_get/#description
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53264>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list