We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 883f325 commit 41acabaCopy full SHA for 41acaba
mu-plugins/api-sites/rewrite-old-api-links.php
@@ -13,7 +13,7 @@
13
list( , $subsite ) = explode( '/', JQUERY_LIVE_SITE, 2 );
14
15
$callback = function( $content ) use ( $subsite ) {
16
- $content = preg_replace( '~(href|src)=(["\'])/(?!\d+\.\d+/)(?=/'.JQUERY_LIVE_DOMAIN.')~', '$1=$2/' . $subsite . '/', $content );
+ $content = preg_replace( '~(href|src)=(["\'])/(?!(\d+\.\d+/|/))~', '$1=$2/' . $subsite . '/', $content );
17
return $content;
18
};
19
0 commit comments