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:
parent
0cb6fbfbc8
commit
064a9332df
|
@ -2056,9 +2056,12 @@ function &get_pages($args = '') {
|
||||||
extract( $r, EXTR_SKIP );
|
extract( $r, EXTR_SKIP );
|
||||||
|
|
||||||
$key = md5( serialize( $r ) );
|
$key = md5( serialize( $r ) );
|
||||||
if ( $cache = wp_cache_get( 'get_pages', 'posts' ) )
|
if ( $cache = wp_cache_get( 'get_pages', 'posts' ) ) {
|
||||||
if ( isset( $cache[ $key ] ) )
|
if ( isset( $cache[ $key ] ) ) {
|
||||||
return apply_filters('get_pages', $cache[ $key ], $r );
|
$pages = apply_filters('get_pages', $cache[ $key ], $r );
|
||||||
|
return $pages;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$inclusions = '';
|
$inclusions = '';
|
||||||
if ( !empty($include) ) {
|
if ( !empty($include) ) {
|
||||||
|
|
Loading…
Reference in New Issue