Move to later hook #2625

This commit is contained in:
Mike Jolley 2013-03-07 16:33:44 +00:00
parent 5306a30005
commit 874d6855ea
3 changed files with 3 additions and 2 deletions

View File

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

View File

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

View File

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