Skip to content
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

Fixing incompatibility with the easy-fancybox plugin #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixing incompatibility with the easy-fancybox plugin #67

wants to merge 1 commit into from

Conversation

bountin
Copy link

@bountin bountin commented Mar 28, 2014

In the latest versions of Shashin and easy-fancybox there is an incompatibility regarding loading the fancybox javascript:
Shashin enqueues the fancybox.js under the handle 'fancybox' and easy-fancybox enqueues it under the name 'jquery-fancybox'. Additionally easy-fancybox dequeues every other fancybox dependency. That alone isn't a problem becuase both javascript files are being loaded but the shashin.js is loaded before easy-fancybox's fancybox.js and therefore shashin.js fails to initialize fancybox, aborts its execution and breaks the whole gallery.

This PR fixes this issue by renaming Shashin's handle to 'jquery-fancybox' and making the dependency on fancybox explicit so that Wordpress can resolve it correctly.

easy-fancybox unqueues several fancybox javascript handles where
Shashin's handle is also affected. Without the explicit dependency
shashin.js would be loaded before the foreign fancybox.js and fail to
initialize because of fancybox's absence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant