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 .= '