summaryrefslogtreecommitdiffstats
path: root/wp-includes/classes.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-01-16 21:27:04 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-01-16 21:27:04 +0000
commit72e9496bfc2f7a962cf4f428ccab25c7a0175aaa (patch)
treeaf3e2ca7136c77140d9e9201e3f495a4b8e7a6da /wp-includes/classes.php
parent04b67169db33e30f5ca63dbbafe551fdc6fb2164 (diff)
downloadwordpress-mu-72e9496bfc2f7a962cf4f428ccab25c7a0175aaa.tar.gz
wordpress-mu-72e9496bfc2f7a962cf4f428ccab25c7a0175aaa.tar.xz
wordpress-mu-72e9496bfc2f7a962cf4f428ccab25c7a0175aaa.zip
WP Merge to rev 4753
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@849 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/classes.php')
-rw-r--r--wp-includes/classes.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/wp-includes/classes.php b/wp-includes/classes.php
index 62cee05..47470d3 100644
--- a/wp-includes/classes.php
+++ b/wp-includes/classes.php
@@ -224,6 +224,8 @@ class WP {
foreach (array_keys($this->query_vars) as $wpvar) {
if ( '' != $this->query_vars[$wpvar] ) {
$this->query_string .= (strlen($this->query_string) < 1) ? '' : '&';
+ if ( !is_scalar($this->query_vars[$wpvar]) ) // Discard non-scalars.
+ continue;
$this->query_string .= $wpvar . '=' . rawurlencode($this->query_vars[$wpvar]);
}
}
@@ -498,10 +500,10 @@ class Walker_Page extends Walker {
return $output;
}
- function start_el($output, $page, $depth, $current_page, $show_date, $date_format) {
+ function start_el($output, $page, $depth, $current_page, $args) {
if ( $depth )
$indent = str_repeat("\t", $depth);
-
+ extract($args);
$css_class = 'page_item';
$_current_page = get_page( $current_page );
if ( $page->ID == $current_page )