diff --git a/wp-includes/class.wp-scripts.php b/wp-includes/class.wp-scripts.php index ea91236951..45d2e54cb1 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 2d8139d830..83b4addbc0 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']) ) {