WordPress.org

Make WordPress Core

Changeset 51041


Ignore:
Timestamp:
05/27/2021 07:35:12 PM (5 months ago)
Author:
desrosj
Message:

General: Correct the inline code examples for _wp_array_get() and `_wp_array_set().

Props thomasplevy, SergeyBiryukov.
Fixes #53264.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r51032 r51041  
    45944594 *         ),
    45954595 *     );
    4596  *     _wp_array_get( $array, array( 'a', 'b', 'c' );
     4596 *     _wp_array_get( $array, array( 'a', 'b', 'c' ) );
    45974597 *
    45984598 * @internal
     
    46364636 *
    46374637 *     $array = array();
    4638  *     _wp_array_set( $array, array( 'a', 'b', 'c', 1 );
     4638 *     _wp_array_set( $array, array( 'a', 'b', 'c', 1 ) );
    46394639 *
    46404640 *     $array becomes:
Note: See TracChangeset for help on using the changeset viewer.