Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkdizajn/4976262 to your computer and use it in GitHub Desktop.
Save mkdizajn/4976262 to your computer and use it in GitHub Desktop.
wordpress mutisite timthumb patch for prepand path
########
wordpress multisite timthumb patch
########
correct the rewrite prepand path with timthumb script!
open timthumb and locate:
if(preg_match('/https?:\/\/(?:www\.)?' . $this->myHost . '(?:$|\/)/i', $this->src)){
//$this->src = preg_replace('/https?:\/\/(?:www\.)?' . $this->myHost . '/i', '', $this->src);
}
comment "this->..." line!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment