Changeset 11756
- Timestamp:
- 07/31/2009 09:31:56 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r11750 r11756 115 115 */ 116 116 function &get_children($args = '', $output = OBJECT) { 117 $kids = array(); 117 118 if ( empty( $args ) ) { 118 119 if ( isset( $GLOBALS['post'] ) ) { 119 120 $args = array('post_parent' => (int) $GLOBALS['post']->post_parent ); 120 121 } else { 121 return false;122 return $kids; 122 123 } 123 124 } elseif ( is_object( $args ) ) { … … 135 136 136 137 $children = get_posts( $r ); 137 if ( !$children ) {138 $kids = false;138 139 if ( !$children ) 139 140 return $kids; 140 }141 141 142 142 update_post_cache($children);
Note: See TracChangeset
for help on using the changeset viewer.