Ticket #12372: remove_archaic_reference_returns.12372.2.diff
| File remove_archaic_reference_returns.12372.2.diff, 821 bytes (added by , 15 years ago) |
|---|
-
wp-includes/post.php
264 264 * @param string $output Optional. Constant for return type, either OBJECT (default), ARRAY_A, ARRAY_N. 265 265 * @return array|bool False on failure and the type will be determined by $output parameter. 266 266 */ 267 function &get_children($args = '', $output = OBJECT) {267 function get_children($args = '', $output = OBJECT) { 268 268 $kids = array(); 269 269 if ( empty( $args ) ) { 270 270 if ( isset( $GLOBALS['post'] ) ) { … … 293 293 update_post_cache($children); 294 294 295 295 foreach ( $children as $key => $child ) 296 $kids[$child->ID] = &$children[$key];296 $kids[$child->ID] = $children[$key]; 297 297 298 298 if ( $output == OBJECT ) { 299 299 return $kids;