Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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