1 (edited by VesQ 2012-02-13 19:47:38)

Topic: [Resolved] Sites with HTTP port != 80 fail to load bwp-minify

When using custom port, the bwp-minify script fails to give proper address in the script-tag. My <head> tag has this inside it:

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>My fancy WordPress site</title>
<meta name="author" content="Vesa Laakso, http://vesq.net" />
<link rel="stylesheet" type="text/css" media="all" href="http://localhost:8080/kslmedia-wp/wp-content/plugins/bwp-minify/min/?f=:8080/kslmedia-wp/wp-content/themes/kslmedia/style.css" />
<link rel="pingback" href="http://localhost:8080/kslmedia-wp/xmlrpc.php" />

<link rel="shortcut icon" href="http://localhost:8080/kslmedia-wp/favicon.ico" type="image/ico" />
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
  {lang: 'fi'}
</script>
<meta name='robots' content='noindex,nofollow' />
<link rel='stylesheet' id='admin-bar-css'  href='http://localhost:8080/kslmedia-wp/wp-content/plugins/bwp-minify/min/?f=:8080/kslmedia-wp/wp-includes/css/admin-bar.css' type='text/css' media='all' />
<script type='text/javascript' src='http://localhost:8080/kslmedia-wp/wp-content/plugins/bwp-minify/min/?f=:8080/kslmedia-wp/wp-content/themes/kslmedia/js/modernizr-2.0.6.min.js,:8080/kslmedia-wp/wp-content/themes/kslmedia/jwplayer/jwplayer.js,:8080/kslmedia-wp/wp-includes/js/jquery/jquery.js,wp-content/plugins/threewp-ajax-search/js/user.js'></script>

As you can see, bwp-minify incorrectly adds :8080 to the query variable f. This triggers an error message with HTTP status code 400 - Bad Request.

EDIT: Sorry, I keep constantly changing the topic name because I just can't figure out what would be the best phrasing for this bug. I think I got it now.

2

Re: [Resolved] Sites with HTTP port != 80 fail to load bwp-minify

This bug has been fixed in 1.2.0.

http://betterwp.net/ - A Better WordPress world for everyone!
Useful links: Forum Rules | WordPress Plugins | WordPress Tips | In-depth WordPress Tutorials