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

git-svn-id: http://svn.automattic.com/wordpress/trunk@9239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-10-17 22:55:30 +00:00
parent 0cb6fbfbc8
commit 064a9332df
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) ) {