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:
parent
ae1f69a07c
commit
9fdf3da4a4
@ -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) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user