Skip to content

Commit

Permalink
Make the wp_list_pages() query filterable. fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewAPicture authored and markjaquith committed Jan 11, 2013
1 parent 64aca63 commit 3184e9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wp-help.php
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,8 @@ public function page_link( $link, $post ) {
private function get_help_topics_html( $with_sort_handles = false ) {
if ( $with_sort_handles )
$this->filter_wp_list_pages = true;
$output = trim( wp_list_pages( array( 'post_type' => self::POST_TYPE, 'hierarchical' => true, 'echo' => false, 'title_li' => '' ) ) );
$defaults = array( 'post_type' => self::POST_TYPE, 'hierarchical' => true, 'echo' => false, 'title_li' => '' );
$output = trim( wp_list_pages( apply_filters( 'cws_wp_help_list_pages', $defaults ) ) );
$this->filter_wp_list_pages = false;
return $output;
}
Expand Down

0 comments on commit 3184e9c

Please sign in to comment.