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

git-svn-id: https://develop.svn.wordpress.org/trunk@21567 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-08-20 23:43:04 +00:00
parent 89d3a6c1a1
commit 9143e2c860
1 changed files with 2 additions and 2 deletions

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;
}
}