mirror of
git://develop.git.wordpress.org/
synced 2025-05-07 20:35:27 +02:00
General: Correct the inline code examples for _wp_array_get()
and `_wp_array_set().
Props thomasplevy, SergeyBiryukov. Fixes #53264. git-svn-id: https://develop.svn.wordpress.org/trunk@51041 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f2b7039707
commit
445fe00ea9
@ -4593,7 +4593,7 @@ function wp_array_slice_assoc( $array, $keys ) {
|
||||
* ),
|
||||
* ),
|
||||
* );
|
||||
* _wp_array_get( $array, array( 'a', 'b', 'c' );
|
||||
* _wp_array_get( $array, array( 'a', 'b', 'c' ) );
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
@ -4635,7 +4635,7 @@ function _wp_array_get( $array, $path, $default = null ) {
|
||||
* Example usage:
|
||||
*
|
||||
* $array = array();
|
||||
* _wp_array_set( $array, array( 'a', 'b', 'c', 1 );
|
||||
* _wp_array_set( $array, array( 'a', 'b', 'c', 1 ) );
|
||||
*
|
||||
* $array becomes:
|
||||
* array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user