Photon is still disabled for HTTPS URLs by default. You can, however, overwrite the default behaviour thanks to the jetpack_photon_reject_https
filter (#). The filter is set to true
by default, but if you set it to false
your images served via HTTPS will start being served by Photon.
I hope this helps.
Thank you for your reply Jeremy, that did the trick, i was wondering if this was going to ever be set to enabled by default….
Cause as of right now everytime i upgrade the jetpack plugin i will have to remember to re enable and set it to false each time.
This won’t be enabled by default, but you don’t need to make any changes to the plugin itself to change the filter value.
You can change the output of the filter in another plugin, or in your theme’s functions.php file, by creating your own function and hook into jetpack_photon_reject_https
.
If you’re not familiar with WordPress filters, you can read more about it here:
http://codex.wordpress.org/Function_Reference/add_filter
Thanks for that information
so would something like this work
add_filter(‘jetpack_photon_reject_https ‘);
the easiest way for me is to add it to my themes function.php
or am i doing it wrong, i read the codex you provided, its a bit confuesing
I also tried using this one
add_filter( ‘jetpack_photon_reject_https’, false );
but all i get is an error
Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given
Try to add the following code to your theme’s functions.php file:
add_filter( 'jetpack_photon_reject_https', '__return_false' );
It’s worth noting that this will enable photon to read HTTPS content, but it’ll still return HTTP urls, like so: http://i0.wp.com
Hi Jeremy.
Thanks for that code, that seemed to do the trick……
also what do you mean its worth nothing to read https content, i thought that it would work the same weather it was http or https…
By it reading https urls, my content is now being served through the wordpress content delivery network therefor increasing site performance, unless i am missing somthing….
Does this not work like that for https enabled sites
i felt it was worth enabling https because in the past the content would not be served through wordpress content delivery network, it still gave me my website address url for images and not http://i0.wp.com
so by enabling the https, all the images are now being served