From 86f90f6c3d417a25677eb5481b7cd130e7f0d45a Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 2 Feb 2007 16:38:26 +0000 Subject: [PATCH] Check page ID only if is_page. fixes #3049 git-svn-id: http://svn.automattic.com/wordpress/trunk@4863 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 4951baaf8..7a22c3ed4 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 .= '