• Hi, after upgrade WP my lightbox plugin stops working.
    I found some clues about the problem.
    On the wp-lightbox2.php file there is one function above:

    function wp_lightbox2_replace($string) {
    $pattern = '/(<a><img)/ie';
    $replacement = '(strstr("25","rel=") ? "1" : "</a><a><img")';
    return preg_replace($pattern, $replacement, $string);
    }"

    It seems that this function looks for the string href=” and img on the page and put the code rel=”lightbox” on it.

    But on WP 2.1 the when i looked at the page code, i found links like: <img src=’http:/….>
    As far as i understood the functon looks for <img src=”https://&#8230;..>
    So the plugin looks for ” and wp 2.1 uses links with ‘
    Can anyone give me a help tho solve this issue?

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