Skip to content

Fix rtMedia plugin for WordPress 6.7 (#2155) #2156

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

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

Conversation

bhargaviananthbandaru
Copy link

Replaced deprecated jQuery methods:
Changed .size() to .length in JavaScript files
Changed .bind() to .on() for jQuery event handlers
Changed .unbind() to .off() for jQuery event removal
Added jQuery Migrate support:

Added automatic jQuery Migrate enqueuing for WordPress 6.7+
Created wp67_compatibility_scripts() method to ensure backward compatibility
Added early script loading hooks for both frontend and admin
Fixed MediaElement.js dependencies:

Updated script registrations to use proper RTMEDIA_URL constants
Added jQuery dependencies to MediaElement scripts
Created wp67_media_element_init()
method for proper MediaElement initialization

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