Force SSL for get_option('siteurl')

This commit is contained in:
Mike Jolley 2012-03-11 14:25:48 +00:00
parent df540fb66f
commit 04c296f14d
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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;