From 445fe00ea99d9741c09ec230d317eeb39c3742ea Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Thu, 27 May 2021 19:35:12 +0000 Subject: [PATCH] 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 --- src/wp-includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 6a4d3e5151..363316216d 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -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(