Ticket #17670: 17670.2.diff
| File 17670.2.diff, 778 bytes (added by , 15 years ago) |
|---|
-
wp-includes/post.php
3172 3172 if ( empty($pages) ) 3173 3173 return $null; 3174 3174 3175 if ( 1 == count($pages) ) 3176 return get_page($pages[0]->ID, $output, $post_type); 3177 3175 3178 foreach ( $pages as $page ) { 3176 3179 $path = '/' . $leaf_path; 3177 3180 $curpage = $page; … … 3180 3183 $curpage = wp_cache_get( $post_parent, 'posts' ); 3181 3184 if ( false === $curpage ) 3182 3185 $curpage = $wpdb->get_row( $wpdb->prepare( "SELECT ID, post_name, post_parent FROM $wpdb->posts WHERE ID = %d and post_type = %s", $post_parent, $post_type ) ); 3186 if ( ! $curpage ) 3187 break; 3183 3188 $path = '/' . $curpage->post_name . $path; 3184 3189 } 3185 3190
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)