Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ https://www.youtube.com/watch?v=dJrykKQGDcs

## Changelog ##

### 4.7.3

* FIXED
* Resolved jQuery Migrate dependency to prevent JS errors.

### 4.7.2

* FIXED
Expand Down
20 changes: 10 additions & 10 deletions app/main/RTMedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -1216,12 +1216,12 @@ public function create_table_error_notice() {
/**
* Ensure WordPress 6.7 compatibility by handling jQuery Migrate dependency.
* WordPress 6.7 removed jQuery Migrate by default, which can break plugins using deprecated jQuery methods.
*
*
* @since 4.6.23
*/
public function ensure_wp67_compatibility() {
global $wp_version;

// Check if we're running WordPress 6.7 or higher
if ( version_compare( $wp_version, '6.7', '>=' ) ) {
// Enqueue jQuery Migrate if not already enqueued to maintain backward compatibility
Expand All @@ -1234,15 +1234,15 @@ public function ensure_wp67_compatibility() {
/**
* WordPress 6.7 compatibility scripts enqueue.
* Ensures jQuery Migrate is available early in the loading process.
*
*
* @since 4.6.23
*/
public function wp67_compatibility_scripts() {
global $wp_version;
global $wp_version;

// Enqueue jQuery Migrate for WordPress 6.7+ compatibility
if ( version_compare( $wp_version, '6.7', '>=' ) ) {
if ( ! wp_script_is( 'jquery-migrate', 'enqueued' ) ) {
if ( wp_script_is( 'jquery', 'enqueued' ) && ! wp_script_is( 'jquery-migrate', 'enqueued' ) ) {
wp_enqueue_script( 'jquery-migrate' );
}
}
Expand All @@ -1251,12 +1251,12 @@ public function wp67_compatibility_scripts() {
/**
* WordPress 6.7 MediaElement.js compatibility initialization.
* Ensures MediaElement is properly initialized in WordPress 6.7+
*
*
* @since 4.6.23
*/
public function wp67_media_element_init() {
global $wp_version;

if ( version_compare( $wp_version, '6.7', '>=' ) ) {
?>
<script type="text/javascript">
Expand All @@ -1265,7 +1265,7 @@ public function wp67_media_element_init() {
if (typeof wp !== 'undefined' && wp.mediaelement && wp.mediaelement.initialize) {
wp.mediaelement.initialize();
}

// Fallback for older MediaElement initialization
if (typeof $().mediaelementplayer !== 'undefined') {
$('.wp-audio-shortcode, .wp-video-shortcode').not('.mejs-container').mediaelementplayer({
Expand All @@ -1274,7 +1274,7 @@ public function wp67_media_element_init() {
}
});
}

// WordPress 6.7 compatibility: Add console log to verify fixes are working
if (window.console && console.log) {
console.log('rtMedia: WordPress 6.7 compatibility mode active');
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
* Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
* Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
* Version: 4.7.2
* Version: 4.7.3
* Author: rtCamp
* Text Domain: buddypress-media
* Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
Expand All @@ -19,7 +19,7 @@
/**
* The version of the plugin
*/
define( 'RTMEDIA_VERSION', '4.7.2' );
define( 'RTMEDIA_VERSION', '4.7.3' );
}

if ( ! defined( 'RTMEDIA_PATH' ) ) {
Expand Down
10 changes: 9 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Requires at least: WordPress 4.1
Tested up to: 6.8.1
Stable tag: 4.7.2
Stable tag: 4.7.3

Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.

Expand Down Expand Up @@ -133,6 +133,11 @@ http://www.youtube.com/watch?v=dJrykKQGDcs

== Changelog ==

= 4.7.3 [September 12, 2025] =

* FIXED
* Resolved jQuery Migrate dependency to prevent JS errors.

= 4.7.2 [September 02, 2025 ] =

* FIXED
Expand Down Expand Up @@ -1950,6 +1955,9 @@ http://www.youtube.com/watch?v=dJrykKQGDcs

== Upgrade Notice ==

= 4.7.3 =
Fixes a JS error affecting some themes/sites without jQuery.

= 4.7.2 =
Improved GoDAM Player support, notification handling, and jQuery compatibility; fixed player rendering and skin issues on Multisite.

Expand Down
Loading