Permalink
Browse files

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
  • Loading branch information...
1 parent ed3a84b commit cc63fad8cb571b13868cecb9f83d852384b70468 @nacin nacin committed Aug 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 wp-includes/post.php
View
4 wp-includes/post.php
@@ -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;
}
}

0 comments on commit cc63fad

Please sign in to comment.