Doc fixes for wp_find_hierarchy_loop. props mdawaffe, fixes #14662.
git-svn-id: https://develop.svn.wordpress.org/trunk@15846 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
19f0fffed4
commit
443d5fc7d8
@ -4339,16 +4339,15 @@ function _wp_mysql_week( $column ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds hierarchy loops using a callback function that maps objects to parents.
|
||||
* Finds hierarchy loops using a callback function that maps object IDs to parent IDs.
|
||||
*
|
||||
* @since 3.1.0
|
||||
* @access private
|
||||
*
|
||||
* @param callback $callback function that accepts ( ID, callback_arg, ... ) and outputs parent_ID
|
||||
* @param callback $callback function that accepts ( ID, $callback_args ) and outputs parent_ID
|
||||
* @param $start The ID to start the loop check at
|
||||
* @param $start_parent the parent_ID of $start to use instead of calling $callback( $start ). Use null to always use $callback
|
||||
* @param array $override an array of ( ID => parent_ID, ... ) to use instead of $callback
|
||||
* @param array $callback_arg optional additional arguments to send to $callback
|
||||
* @param array $callback_args optional additional arguments to send to $callback
|
||||
* @return array IDs of all members of loop
|
||||
*/
|
||||
function wp_find_hierarchy_loop( $callback, $start, $start_parent, $callback_args = array() ) {
|
||||
|
Loading…
Reference in New Issue
Block a user