Support » Plugin: Advanced lazy load » breaks other plugin

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is kind of a late reply, but it might help others.

    In my case it was breaking the layout of the title which contained the string “src”. The problem is with the regex that easily matches codes outside of the tag. I fixed it by modifying the line 154 of advanced_lazyload.php:

    From:

    $pattern         = '/((?:\<img).*)(src)/';

    To:

    $pattern         = '/((?:\<img)[^>]*)(src)/';

    This regex matches all characters other than ‘>’, which is a closing bracket in HTML. Author’s regex would match past the closing bracket.

    Hope it works for you.

    Peraphs you could help me with another pattern. I’m tryng to exclude the images who has the class “nounveil”.

    Any cloue?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘breaks other plugin’ is closed to new replies.