Return a variable reference from get_pages(). see [21559], see #21309, fixes #20756.

git-svn-id: http://core.svn.wordpress.org/trunk@21567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-08-20 23:43:04 +00:00
parent ed3a84bacc
commit cc63fad8cb

View File

@ -3520,8 +3520,8 @@ function &get_pages($args = '') {
if ( is_array($cache) && isset( $cache[ $key ] ) ) {
// Convert to WP_Post instances
$pages = array_map( 'get_post', $cache[ $key ] );
return apply_filters( 'get_pages', $pages, $r );
$pages = apply_filters( 'get_pages', $pages, $r );
return $pages;
}
}