Thread Starter
ls5302
(@ls5302)
The last one is a lot more complicated:
The URL:
https://romseyhockey.org.uk/?wpui-css=css&ver=3.6
results in a 301 redirect to:
http://romseyhockey.org.uk/?wpui-css=css&ver=3.6
I have no idea where this is happening in WP. 🙁
Thread Starter
ls5302
(@ls5302)
The 301 redirect is being done by the better-wp-security as the “page” http://romseyhockey.org.uk/?wpui-css=css&ver=3.6
.
Thread Starter
ls5302
(@ls5302)
I have fixed my issue of mixed content ( http / https ) by defining an additional method in the wpUI class.
<br />
function wpui_cancel_redirect( $location, $status )<br />
{<br />
$query = get_query_var( 'wpui-css' );<br />
if ( 'css' == $query ) {<br />
return false;<br />
}<br />
else<br />
{<br />
return $location;<br />
}<br />
}<br />
and inserting:
add_filter( 'wp_redirect', array( &$this, 'wpui_cancel_redirect' ), 10, 2 );
on line 71 in the class constructor.
This basically cancels wp_redirection when the “wpui-css=css” is in the URL.
I know this is only an issue with HTTPS enabled pages please consider adding to trunk.
Kind regards,
Lucas
PS Great plugin – which is why I have gone to the effort of this my mixed content issue. 🙂