Must pass var by ref. Props x11tech. fixes #7781

git-svn-id: https://develop.svn.wordpress.org/trunk@9239 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-10-17 22:55:30 +00:00
parent ae1f69a07c
commit 9fdf3da4a4
1 changed files with 6 additions and 3 deletions

View File

@ -2056,9 +2056,12 @@ function &get_pages($args = '') {
extract( $r, EXTR_SKIP );
$key = md5( serialize( $r ) );
if ( $cache = wp_cache_get( 'get_pages', 'posts' ) )
if ( isset( $cache[ $key ] ) )
return apply_filters('get_pages', $cache[ $key ], $r );
if ( $cache = wp_cache_get( 'get_pages', 'posts' ) ) {
if ( isset( $cache[ $key ] ) ) {
$pages = apply_filters('get_pages', $cache[ $key ], $r );
return $pages;
}
}
$inclusions = '';
if ( !empty($include) ) {