WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/07/2010 04:31:07 AM (9 years ago)
Author:
markjaquith
Message:

Support custom post type links in wp_list_pages(). fixes #14177. props scribu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r15586 r15587  
    12031203        $css_class = implode(' ', apply_filters('page_css_class', $css_class, $page));
    12041204
    1205         $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . esc_attr( wp_strip_all_tags( apply_filters( 'the_title', $page->post_title, $page->ID ) ) ) . '">' . $link_before . apply_filters( 'the_title', $page->post_title, $page->ID ) . $link_after . '</a>';
     1205        $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_permalink($page->ID) . '" title="' . esc_attr( wp_strip_all_tags( apply_filters( 'the_title', $page->post_title, $page->ID ) ) ) . '">' . $link_before . apply_filters( 'the_title', $page->post_title, $page->ID ) . $link_after . '</a>';
    12061206
    12071207        if ( !empty($show_date) ) {
Note: See TracChangeset for help on using the changeset viewer.