mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Respect the fields arg when passed to get_children().
Fixes #22208. git-svn-id: https://develop.svn.wordpress.org/trunk@25160 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -311,9 +311,12 @@ function get_children($args = '', $output = OBJECT) {
|
||||
|
||||
$children = get_posts( $r );
|
||||
|
||||
if ( !$children )
|
||||
if ( ! $children )
|
||||
return $kids;
|
||||
|
||||
if ( ! empty( $r['fields'] ) )
|
||||
return $children;
|
||||
|
||||
update_post_cache($children);
|
||||
|
||||
foreach ( $children as $key => $child )
|
||||
|
||||
Reference in New Issue
Block a user