2.2.1 LESS & HTTPS problems - stylesheet calls
Posted 23 June 2012 - 01:30 AM
When viewing a page via HTTPS, the pagelines-compiled-css-*.css file is calling background elements via http instead of https, causing insecure content errors in browsers.
Is this a Pagelines issue or a lesscss issue?
Posted 23 June 2012 - 03:04 AM
Posted 23 June 2012 - 03:32 PM
Posted 24 June 2012 - 02:19 AM
Posted 24 June 2012 - 12:04 PM
Posted 24 June 2012 - 04:39 PM
Posted 24 June 2012 - 05:32 PM
I use HTTPS on a limited number of pages - all of which have been disabled currently while I work out this issue. This explains why you didn't find any ssl pages. Also, because I only use it in a few places, changing the blog URL prefix to https:// is impractical. Accordingly, I use the plugin Wordpress HTTPS to accomplish this on specific pages. Perhaps it's just a limitation of the plugin, but it doesn't hook the get_template_directory_uri() function. This is discussed here: . Accordingly, all URLs generated by the LESS compiler weren't getting an HTTPS prefix based on PARENT_URL as discussed above.
I have worked around this issue by having PARENT_URL (and CHILD_URL) return a relative path by changing the following in init.globals.php:
Based on some admittedly limited testing, this is having no adverse effect on theme functionality.
Posted 24 June 2012 - 05:42 PM
Add it to customize functions.php
Posted 24 June 2012 - 05:55 PM
on ssl-enabled pages.
However, all URLs with a base of /image/ instead of sections remain unchanged.
Posted 24 June 2012 - 06:32 PM
However, calls to are producing a 301 redirect to
This is, again, producing a mixed content error.
Edit: This appears to be a problem with the Wordpress HTTPS plugin - specifically the Force SSL Exclusively option. I'll address that with the developer.
Thanks to the WP team for your help - I hope a more permanent fix can find its way into the next version.
Posted 04 September 2012 - 04:48 PM
Posted 17 October 2012 - 02:51 AM
It was added ages ago2.2.2 i think
What exactly was added? I'd love to add this custom https function/filter on my sites. Is it already in the codebase for the current release?
Posted 17 October 2012 - 07:57 AM
An action was added which does what Simon wrote above basically.