Move to later hook #2625
This commit is contained in:
parent
5306a30005
commit
874d6855ea
|
@ -173,6 +173,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Fix - Samoa -> Western Samoa
|
||||
* Fix - Re-applied image setting tooltips
|
||||
* Fix - Post code ranges (taxes) on insert.
|
||||
* Fix - Moved init checkout to a later hook to prevent canonical template redirects kicking in.
|
||||
|
||||
= 2.0.2 - 06/03/2013 =
|
||||
* Fix - Frontpage shop when 'orderby' is set.
|
||||
|
|
|
@ -1315,7 +1315,7 @@ function woocommerce_track_product_view() {
|
|||
setcookie( "woocommerce_recently_viewed", implode( '|', $viewed_products ), 0, COOKIEPATH, COOKIE_DOMAIN, false, true );
|
||||
}
|
||||
|
||||
add_action( 'wp', 'woocommerce_track_product_view', 10 );
|
||||
add_action( 'get_header', 'woocommerce_track_product_view', 10 );
|
||||
|
||||
/**
|
||||
* Layered Nav Init
|
||||
|
|
|
@ -473,7 +473,7 @@ class Woocommerce {
|
|||
$this->load_messages();
|
||||
|
||||
// Hooks
|
||||
add_action( 'wp', array( $this, 'init_checkout' ) );
|
||||
add_action( 'get_header', array( $this, 'init_checkout' ) );
|
||||
add_filter( 'template_include', array( $this, 'template_loader' ) );
|
||||
add_filter( 'comments_template', array( $this, 'comments_template_loader' ) );
|
||||
add_filter( 'wp_redirect', array( $this, 'redirect' ), 1, 2 );
|
||||
|
|
Loading…
Reference in New Issue