Merge pull request #7656 from tivnet/patch-5

get_the_title( $shop_page ) instead of $shop_page->post_title
This commit is contained in:
Mike Jolley 2015-03-09 10:02:22 +00:00
commit 1975d6dc13
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class WC_Breadcrumb {
// If permalinks contain the shop page in the URI prepend the breadcrumb with shop
if ( $shop_page_id && $shop_page && strstr( $permalinks['product_base'], '/' . $shop_page->post_name ) && get_option( 'page_on_front' ) != $shop_page_id ) {
$this->add_crumb( $shop_page->post_title, get_permalink( $shop_page ) );
$this->add_crumb( get_the_title( $shop_page ), get_permalink( $shop_page ) );
}
}