Ticket #1171: wplistpage.diff
File wplistpage.diff, 619 bytes (added by , 20 years ago) |
---|
-
wp-includes/template-functions-post.php
311 311 } 312 312 313 313 function wp_list_pages($args = '') { 314 global $cache_pages; 314 315 parse_str($args, $r); 315 316 if (!isset($r['depth'])) $r['depth'] = 0; 316 317 if (!isset($r['show_date'])) $r['show_date'] = ''; … … 319 320 320 321 321 322 // Query pages. 322 $pages = get_pages($args);323 $pages = (isset($cache_pages)) ? $cache_pages : get_pages(); 323 324 if ( $pages ) : 324 325 325 326 if ( $r['title_li'] )