From 09c4928cf7aec1fd4c8504282820db3d874c2c87 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 26 Mar 2014 22:46:16 +0000 Subject: [PATCH] In `wp_list_pages()`, add the `current_page_item` class where applicable when used with a custom post type. Adds a unit test. Props nacin. Fixes #17590. git-svn-id: https://develop.svn.wordpress.org/trunk@27755 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post-template.php | 11 +++++++++-- tests/phpunit/tests/post/getPages.php | 25 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 6ab77548d4..dfc74f6ce0 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -1009,8 +1009,15 @@ function wp_list_pages($args = '') { $output .= '