Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter WyrdNexus

    (@wyrdnexus)

    Needs more review. The regex is definitely not quite right though.

    Thread Starter WyrdNexus

    (@wyrdnexus)

    There it is… finally got it.

    $css = preg_replace("/url(?!\(['\"]?(data:|http:))\(['\"]?([^\/][^'\"\)]*)['\"]?\)/i","url({$css_dir}/$2)",$css);

    This should resolve the issue, and avoid other plugin conflicts.
    Please let me know the results of testing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Suggested Code Tweak to sbp_rebuilding_css_urls()’ is closed to new replies.