• Resolved pepe

    (@myefreelance)


    If you register on WP a script and its url hasn’t got any scheme, it doesn’t work.

    You resolve the bug if you put this code on “process_media_source” function:

    if ( 0 === strpos( $src, “//”. $_SERVER[‘HTTP_HOST’] ))
    $src = $_SERVER[‘REQUEST_SCHEME’]. “:”. $src;

    https://wordpress.org/plugins/bwp-minify/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Doesn't work if you register script without scheme.’ is closed to new replies.