Skip to content

Commit 63f3d0e

Browse files
authored
Merge pull request #2060 from rtCamp/develop
Version Update v4.6.20 [ Master ]
2 parents 43442d7 + 658ab47 commit 63f3d0e

File tree

6 files changed

+30
-12
lines changed

6 files changed

+30
-12
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,13 @@ https://www.youtube.com/watch?v=dJrykKQGDcs
152152

153153
## Changelog ##
154154

155+
### 4.6.20 [August 02, 2024] ###
156+
157+
* Fixed
158+
159+
* Fixes related PHP 8.2 compatibility issues.
160+
161+
155162
### 4.6.19 [April 16, 2024] ###
156163
* Fixed
157164
* Fixed shortcode security issue.

app/importers/BPMediaAlbumimporter.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,14 @@ public function ui() {
222222
*
223223
* @return mixed
224224
*/
225-
public function create_album( $author_id, $album_name = 'Imported Media' ) {
225+
public function create_album( $album_name = '', $author_id = 1 ) {
226226
global $bp_media, $wpdb;
227227

228+
// Set album_name to 'Imported Media' if it is empty.
229+
if ( empty( $album_name ) ) {
230+
$album_name = 'Imported Media';
231+
}
232+
228233
if ( array_key_exists( 'bp_album_import_name', $bp_media->options ) ) {
229234
if ( '' !== $bp_media->options['bp_album_import_name'] ) {
230235
$album_name = $bp_media->options['bp_album_import_name'];

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
44
* Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
55
* 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!
6-
* Version: 4.6.19
6+
* Version: 4.6.20
77
* Author: rtCamp
88
* Text Domain: buddypress-media
99
* Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
@@ -19,7 +19,7 @@
1919
/**
2020
* The version of the plugin
2121
*/
22-
define( 'RTMEDIA_VERSION', '4.6.19' );
22+
define( 'RTMEDIA_VERSION', '4.6.20' );
2323
}
2424

2525
if ( ! defined( 'RTMEDIA_PATH' ) ) {

languages/buddypress-media.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.6.19\n"
5+
"Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.6.20\n"
66
"Report-Msgid-Bugs-To: https://rtmedia.io/support/\n"
7-
"POT-Creation-Date: 2024-04-16 07:27:16+00:00\n"
7+
"POT-Creation-Date: 2024-08-02 08:51:53+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"

lib/deactivation-survey/deactivation-survey.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ public function load_scripts() {
4444
'It\'s not what I was looking for.',
4545
'The plugin didn\'t work as expected.',
4646
];
47-
47+
4848
$current_user = wp_get_current_user();
49-
49+
5050
$rt_deactivate = [
5151
'home_url' => home_url(),
5252
'admin_url' => admin_url(),
@@ -57,7 +57,7 @@ public function load_scripts() {
5757
'user_email' => $current_user->user_email,
5858
'header_text' => esc_html__( 'If you have a moment, please let us know why you are deactivating: ', 'buddypress-media' )
5959
];
60-
60+
6161
wp_localize_script( 'rt-deactivation-survey', 'rtDeactivate', $rt_deactivate );
6262
}
6363
}
@@ -100,7 +100,7 @@ public function rt_send_deactivation_feedback() {
100100
'body' => $data,
101101
'headers' => [
102102
'Content-type' => "application/x-www-form-urlencoded",
103-
'Authorization' => "Basic " . base64_encode("${auth_user}:${auth_password}")
103+
'Authorization' => "Basic " . base64_encode("{$auth_user}:{$auth_password}")
104104
],
105105
'timeout' => 60,
106106
'redirection' => 5,
@@ -111,7 +111,7 @@ public function rt_send_deactivation_feedback() {
111111

112112
$api_response = wp_remote_post( $this->api_url . '/survey', $options );
113113
$response = json_decode( wp_remote_retrieve_body( $api_response ) );
114-
114+
115115
if ( 'integer' === gettype( $response ) ) {
116116
echo wp_json_encode( 'success' );
117117
wp_die();

readme.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Tags: BuddyPress, media, multimedia, album, audio, songs, music, video, photo, i
44
License: GPLv2 or later
55
License URI: http://www.gnu.org/licenses/gpl-2.0.html
66
Requires at least: WordPress 4.1
7-
Tested up to: 6.4.2
8-
Stable tag: 4.6.19
7+
Tested up to: 6.6
8+
Stable tag: 4.6.20
99

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

@@ -133,6 +133,12 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
133133

134134
== Changelog ==
135135

136+
= 4.6.20 [August 02, 2024] =
137+
138+
* Fixed
139+
140+
* Fixes related PHP 8.2 compatibility issues.
141+
136142
= 4.6.19 [April 16, 2024] =
137143

138144
* Fixed

0 commit comments

Comments
 (0)