post_parent dropdown fixes. get_pages() cache fix to eliminate duplicate queries.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -2065,7 +2065,7 @@ function &get_pages($args = '') {
|
||||
$r = wp_parse_args( $args, $defaults );
|
||||
extract( $r, EXTR_SKIP );
|
||||
|
||||
$key = md5( serialize( $r ) );
|
||||
$key = md5( serialize( compact(array_keys($defaults)) ) );
|
||||
if ( $cache = wp_cache_get( 'get_pages', 'posts' ) ) {
|
||||
if ( isset( $cache[ $key ] ) ) {
|
||||
$pages = apply_filters('get_pages', $cache[ $key ], $r );
|
||||
|
||||
Reference in New Issue
Block a user