Ticket #14662: 14662.3.diff
| File 14662.3.diff, 1.2 KB (added by , 16 years ago) |
|---|
-
wp-includes/functions.php
4339 4339 } 4340 4340 4341 4341 /** 4342 * Finds hierarchy loops using a callback function that maps object s to parents.4342 * Finds hierarchy loops using a callback function that maps object IDs to parent IDs. 4343 4343 * 4344 4344 * @since 3.1.0 4345 4345 * @access private 4346 4346 * 4347 * @param callback $callback function that accepts ( ID, callback_arg, ...) and outputs parent_ID4347 * @param callback $callback function that accepts ( ID, $callback_args ) and outputs parent_ID 4348 4348 * @param $start The ID to start the loop check at 4349 4349 * @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 4352 4351 * @return array IDs of all members of loop 4353 4352 */ 4354 4353 function wp_find_hierarchy_loop( $callback, $start, $start_parent, $callback_args = array() ) {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)