You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I went through a situation here that made me lose a few minutes.
The CDN plugin do a preg_replace on the entire rendered page to replace the old urls with the new ones.
The problem was when I had more than one URL to be replaced on the same line. The preg_replace did just one replacement, the first.
Hi Guys!
I went through a situation here that made me lose a few minutes.
The CDN plugin do a preg_replace on the entire rendered page to replace the old urls with the new ones.
The problem was when I had more than one URL to be replaced on the same line. The preg_replace did just one replacement, the first.
So, for example:
would be replaced with
Note that the href attribute for the a tag was replaced, but not the src for the img. Thats because they are on the same line.
The text was updated successfully, but these errors were encountered: