Skip to content

Commit

Permalink
Unhook wc_page_endpoint_title after it is ran once (main page title).
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Feb 19, 2015
1 parent 517a447 commit 5d61028
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions includes/wc-page-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function wc_page_endpoint_title( $title ) {
if ( $endpoint_title = WC()->query->get_endpoint_title( $endpoint ) ) {
$title = $endpoint_title;
}
remove_filter( 'the_title', 'wc_page_endpoint_title' );
}
return $title;
}
Expand Down Expand Up @@ -58,8 +59,8 @@ function wc_get_page_id( $page ) {
*/
function wc_get_page_permalink( $page ) {
$permalink = get_permalink( wc_get_page_id( $page ) );
return apply_filters( 'woocommerce_get_' . $page . '_page_permalink', $permalink );

return apply_filters( 'woocommerce_get_' . $page . '_page_permalink', $permalink );
}

/**
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc

== Changelog ==

* Fix - Unhook wc_page_endpoint_title after it is ran once (main page title).
* Tweak - Improve category coupon message.
* Tweak - Don't download GeoIP Database until geolocation option is enabled in settings.

Expand Down

0 comments on commit 5d61028

Please sign in to comment.