diff --git a/wp-includes/class.wp-scripts.php b/wp-includes/class.wp-scripts.php index ea9123695..45d2e54cb 100644 --- a/wp-includes/class.wp-scripts.php +++ b/wp-includes/class.wp-scripts.php @@ -96,7 +96,7 @@ class WP_Scripts extends WP_Dependencies { $ver = $this->registered[$handle]->ver ? $this->registered[$handle]->ver : $this->default_version; if ( isset($this->args[$handle]) ) - $ver = $ver ? $ver . '&' . $this->args[$handle] : '?' . $this->args[$handle]; + $ver = $ver ? $ver . '&' . $this->args[$handle] : $this->args[$handle]; $src = $this->registered[$handle]->src; diff --git a/wp-includes/class.wp-styles.php b/wp-includes/class.wp-styles.php index 2d8139d83..83b4addbc 100644 --- a/wp-includes/class.wp-styles.php +++ b/wp-includes/class.wp-styles.php @@ -41,7 +41,7 @@ class WP_Styles extends WP_Dependencies { $ver = $this->registered[$handle]->ver ? $this->registered[$handle]->ver : $this->default_version; if ( isset($this->args[$handle]) ) - $ver = $ver ? $ver . '&' . $this->args[$handle] : '?' . $this->args[$handle]; + $ver = $ver ? $ver . '&' . $this->args[$handle] : $this->args[$handle]; if ( $this->do_concat ) { if ( $this->in_default_dir($this->registered[$handle]->src) && !isset($this->registered[$handle]->extra['conditional']) && !isset($this->registered[$handle]->extra['alt']) ) {