Force SSL for get_option('siteurl')
This commit is contained in:
parent
df540fb66f
commit
04c296f14d
|
@ -146,6 +146,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
= 1.5.2 =
|
||||
* Fixed notice in GA code
|
||||
* Postcode format tweak
|
||||
* Force SSL for get_option('siteurl')
|
||||
|
||||
= 1.5.1 - 08/03/2012 =
|
||||
* Persistent (logged-in) customer carts (thanks dominic-p)
|
||||
|
|
|
@ -116,7 +116,7 @@ class Woocommerce {
|
|||
if (!is_admin() || defined('DOING_AJAX')) :
|
||||
add_action( 'wp', array( &$this, 'ssl_redirect'));
|
||||
|
||||
$filters = array( 'post_thumbnail_html', 'widget_text', 'wp_get_attachment_url', 'wp_get_attachment_image_attributes', 'wp_get_attachment_url', 'option_siteurl', 'option_home', 'option_url', 'option_wpurl', 'option_stylesheet_url', 'option_template_url', 'script_loader_src', 'style_loader_src', 'template_directory_uri', 'stylesheet_directory_uri' );
|
||||
$filters = array( 'post_thumbnail_html', 'widget_text', 'wp_get_attachment_url', 'wp_get_attachment_image_attributes', 'wp_get_attachment_url', 'option_siteurl', 'option_home', 'option_url', 'option_wpurl', 'option_stylesheet_url', 'option_template_url', 'script_loader_src', 'style_loader_src', 'template_directory_uri', 'stylesheet_directory_uri', 'option_siteurl' );
|
||||
foreach ($filters as $filter) add_filter($filter, array( &$this, 'force_ssl'));
|
||||
endif;
|
||||
|
||||
|
|
Loading…
Reference in New Issue