Ticket #4660: get_pages_order.2.2.1.patch
| File get_pages_order.2.2.1.patch, 875 bytes (added by , 19 years ago) |
|---|
-
post.php
1070 1070 extract($r, EXTR_SKIP); 1071 1071 1072 1072 $key = md5( serialize( $r ) ); 1073 if ( $cache = wp_cache_get( 'get_pages', 'page' ) ) 1074 if ( isset( $cache[ $key ] ) ) 1075 return apply_filters('get_pages', $cache[ $key ], $r ); 1073 if ( $cache = wp_cache_get( 'get_pages', 'page' ) ) { 1074 if ( isset( $cache[ $key ] ) ) { 1075 $pages = apply_filters('get_pages', $cache[ $key ], $r ); 1076 if ( $pages && ( $child_of || $hierarchical ) ) 1077 $pages = & get_page_children($child_of, $pages); 1078 return $pages; 1079 } 1080 } 1076 1081 1077 1082 $inclusions = ''; 1078 1083 if ( !empty($include) ) {