Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 339-341 (lines=3) @@
336
	 * @return string Style's fully-qualified URL.
337
	 */
338
	public function _css_href( $src, $ver, $handle ) {
339
		if ( !is_bool($src) && !preg_match('|^(https?:)?//|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) {
340
			$src = $this->base_url . $src;
341
		}
342
343
		if ( !empty($ver) )
344
			$src = add_query_arg('ver', $ver, $src);

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

@@ 332-334 (lines=3) @@
329
			return true;
330
		}
331
332
		if ( ! preg_match( '|^(https?:)?//|', $src ) && ! ( $this->content_url && 0 === strpos( $src, $this->content_url ) ) ) {
333
			$src = $this->base_url . $src;
334
		}
335
336
		if ( ! empty( $ver ) )
337
			$src = add_query_arg( 'ver', $ver, $src );