WordPress.org

Make WordPress Core

Ticket #5458: no_hier_pages.diff

File no_hier_pages.diff, 426 bytes (added by ryan, 12 years ago)
  • wp-includes/post-template.php

     
    318318        $r['exclude'] = implode(',', apply_filters('wp_list_pages_excludes', explode(',', $r['exclude'])));
    319319
    320320        // Query pages.
     321        $r['hierarchical'] = 0;
    321322        $pages = get_pages($r);
    322323
    323324        if ( !empty($pages) ) {