Merge pull request #15029 from vinoddalvi/master

Resolved the issue - Allow linking to single product additional_information tab from url hash #15016
This commit is contained in:
Mike Jolley 2017-05-16 13:09:21 +01:00 committed by GitHub
commit 2774c8dc28
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,8 @@ jQuery( function( $ ) {
$tabs.find( 'li.reviews_tab a' ).click();
} else if ( url.indexOf( 'comment-page-' ) > 0 || url.indexOf( 'cpage=' ) > 0 ) {
$tabs.find( 'li.reviews_tab a' ).click();
} else if ( hash === '#tab-additional_information' ) {
$tabs.find( 'li.additional_information_tab a' ).click();
} else {
$tabs.find( 'li:first a' ).click();
}