WordPress.org

Make WordPress Core

Ticket #14662: 14662.3.diff

File 14662.3.diff, 1.2 KB (added by mdawaffe, 9 years ago)

Doc fixes

  • wp-includes/functions.php

     
    43394339}
    43404340
    43414341/**
    4342  * Finds hierarchy loops using a callback function that maps objects to parents.
     4342 * Finds hierarchy loops using a callback function that maps object IDs to parent IDs.
    43434343 *
    43444344 * @since 3.1.0
    43454345 * @access private
    43464346 *
    4347  * @param callback $callback function that accepts ( ID, callback_arg, ... ) and outputs parent_ID
     4347 * @param callback $callback function that accepts ( ID, $callback_args ) and outputs parent_ID
    43484348 * @param $start The ID to start the loop check at
    43494349 * @param $start_parent the parent_ID of $start to use instead of calling $callback( $start ).  Use null to always use $callback
    4350  * @param array $override an array of ( ID => parent_ID, ... ) to use instead of $callback
    4351  * @param array $callback_arg optional additional arguments to send to $callback
     4350 * @param array $callback_args optional additional arguments to send to $callback
    43524351 * @return array IDs of all members of loop
    43534352 */
    43544353function wp_find_hierarchy_loop( $callback, $start, $start_parent, $callback_args = array() ) {