From ae8cc717ac186e8abb4ab30abca1d7a1744c4814 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 2 Feb 2007 16:38:26 +0000 Subject: [PATCH] Check page ID only if is_page. fixes #3049 git-svn-id: https://develop.svn.wordpress.org/trunk@4863 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post-template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 4951baaf8c..7a22c3ed4c 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -273,6 +273,7 @@ function wp_list_pages($args = '') { $r = array_merge($defaults, $r); $output = ''; + $current_page = 0; // sanitize, mostly to keep spaces out $r['exclude'] = preg_replace('[^0-9,]', '', $r['exclude']); @@ -288,7 +289,8 @@ function wp_list_pages($args = '') { $output .= '