-
Notifications
You must be signed in to change notification settings - Fork 806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Carousel: Check if image parent is not a link #6647
Carousel: Check if image parent is not a link #6647
Conversation
modules/carousel/jetpack-carousel.js
Outdated
@@ -445,6 +445,11 @@ jQuery(document).ready(function($) { | |||
return; | |||
} | |||
|
|||
// skip if the parent is not a link |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but one tiny nitpick. We're not talking about the parent here, but about the container, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes and no 😄 . The container is actually the parent, but I will change this if you want.
OK, so I guess the |
* Carousel: Check if the image parent is not a link * Change 'parent' to 'container' in comment
merged to 4.7 eae9b8f |
Fixes #6638
Changes proposed in this Pull Request:
Testing instructions:
a
tag (you can use the following code )Uncaught TypeError: Cannot read property 'split' of undefined
On line 451 of
modules/carousel/jetpack-carousel.js
cc @jeherve