2.2.1 LESS & HTTPS problems - stylesheet calls
#1
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.
Example:
Is this a Pagelines issue or a lesscss issue?
#2
Posted 23 June 2012 - 03:04 AM
#3
Posted 23 June 2012 - 03:32 PM
#4
Posted 24 June 2012 - 02:19 AM
#5
Posted 24 June 2012 - 12:04 PM
#6
Posted 24 June 2012 - 04:39 PM
#7
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:
to
Based on some admittedly limited testing, this is having no adverse effect on theme functionality.
#8
Posted 24 June 2012 - 05:42 PM
Add it to customize functions.php
#9
Posted 24 June 2012 - 05:55 PM
Has become:
on ssl-enabled pages.
However, all URLs with a base of /image/ instead of sections remain unchanged.
Example:
See .
#10
Posted 24 June 2012 - 05:57 PM
#11
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.
#12
Posted 24 June 2012 - 06:55 PM
#13
Posted 04 September 2012 - 04:48 PM
#14
Posted 05 September 2012 - 01:01 AM
#15
Posted 17 October 2012 - 02:51 AM
It was added ages ago
2.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?
#16
Posted 17 October 2012 - 07:57 AM
An action was added which does what Simon wrote above basically.











