Code Duplication    Length = 2-2 lines in 2 locations

src/wp-includes/class.wp-scripts.php 1 location

@@ 273-274 (lines=2) @@
270
			$ver = $obj->ver ? $obj->ver : $this->default_version;
271
		}
272
273
		if ( isset($this->args[$handle]) )
274
			$ver = $ver ? $ver . '&' . $this->args[$handle] : $this->args[$handle];
275
276
		$src = $obj->src;
277
		$cond_before = $cond_after = '';

src/wp-includes/class.wp-styles.php 1 location

@@ 151-152 (lines=2) @@
148
		else
149
			$ver = $obj->ver ? $obj->ver : $this->default_version;
150
151
		if ( isset($this->args[$handle]) )
152
			$ver = $ver ? $ver . '&' . $this->args[$handle] : $this->args[$handle];
153
154
		if ( $this->do_concat ) {
155
			if ( $this->in_default_dir($obj->src) && !isset($obj->extra['conditional']) && !isset($obj->extra['alt']) ) {