Code Duplication    Length = 2-2 lines in 2 locations

wp-includes/class-wp.php 1 location

@@ 228-229 (lines=2) @@
225
			} else {
226
				foreach ( (array) $rewrite as $match => $query ) {
227
					// If the requested file is the anchor of the match, prepend it to the path info.
228
					if ( ! empty($requested_file) && strpos($match, $requested_file) === 0 && $requested_file != $requested_path )
229
						$request_match = $requested_file . '/' . $requested_path;
230
231
					if ( preg_match("#^$match#", $request_match, $matches) ||
232
						preg_match("#^$match#", urldecode($request_match), $matches) ) {

wp-includes/rewrite.php 1 location

@@ 547-548 (lines=2) @@
544
545
		// If the requesting file is the anchor of the match, prepend it
546
		// to the path info.
547
		if ( !empty($url) && ($url != $request) && (strpos($match, $url) === 0) )
548
			$request_match = $url . '/' . $request;
549
550
		if ( preg_match("#^$match#", $request_match, $matches) ) {
551