rtMedia for WordPress, BuddyPress and bbPress - Version 4.6.4

Version Description

rtMedia 4.6.4 with support for Amazon S3 presigned URLs, along with some fixes such as: issue with nested comments, activities sync issue in a multisite network and other small fixes and improvements.

=

Download this release

Release Info

Developer rtcamp
Plugin Icon 128x128 rtMedia for WordPress, BuddyPress and bbPress
Version 4.6.4
Comparing to
See all releases

Code changes from version 4.6.3 to 4.6.4

app/assets/js/rtMedia.backbone.js CHANGED
@@ -28,6 +28,24 @@ jQuery( function( $ ) {
28
  media_children.remove();
29
  }
30
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  });
32
  /**
33
  * End of issue 1059 fix
@@ -717,10 +735,11 @@ jQuery( function( $ ) {
717
  var file_desc_val = jQuery( rtm_file_desc_input ).val();
718
  var file_name_wrapper_el = jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' );
719
 
720
- if ( file_title_val != '' ) {
721
- file_name_wrapper_el.text( file_title_val + '.' + rtm_file_name_array[ 1 ] );
722
- file.title = file_title_val;
723
- }
 
724
 
725
  if ( file_desc_val != '' ) {
726
  file.description = file_desc_val;
@@ -1285,8 +1304,9 @@ jQuery( document ).ready( function( $ ) {
1285
 
1286
  var file_name_wrapper_el = jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' );
1287
 
1288
- if ( file_title_val != '' ) {
1289
- file_name_wrapper_el.text( file_title_val + '.' + rtm_file_name_array[ 1 ] );
 
1290
  file.title = file_title_val;
1291
  }
1292
 
@@ -2631,8 +2651,9 @@ function renderUploadercomment_media( widget_id, parent_id_type ) {
2631
 
2632
  var file_name_wrapper_el = jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' );
2633
 
2634
- if ( file_title_val != '' ) {
2635
- file_name_wrapper_el.text( file_title_val + '.' + rtm_file_name_array[ 1 ] );
 
2636
  file.title = file_title_val;
2637
  }
2638
 
28
  media_children.remove();
29
  }
30
  });
31
+
32
+ /**
33
+ * Remove imageEdit.save function call and add it only when image is being modified in WP editor.
34
+ */
35
+ $( '#rtmedia_media_single_edit .rtm-button-save' ).on( 'click', function() {
36
+ var $media_id = $( '#rtmedia-editor-media-id' ).val();
37
+ var $nonce = $( '#rtmedia-editor-nonce' ).val();
38
+ if ( 'undefined' === typeof $nonce || '' === $nonce.trim() || 'undefined' === typeof $media_id || '' === $media_id.trim() ) {
39
+ return;
40
+ }
41
+ $media_id = parseInt( $media_id );
42
+ $media_head = $( '#media-head-' + $media_id );
43
+ if ( ! $media_head.length || 'undefined' === typeof $media_head.css( 'display' ) || 'none' !== $media_head.css( 'display' ).trim() ) {
44
+ return;
45
+ }
46
+
47
+ imageEdit.save( $media_id, $nonce );
48
+ } );
49
  });
50
  /**
51
  * End of issue 1059 fix
735
  var file_desc_val = jQuery( rtm_file_desc_input ).val();
736
  var file_name_wrapper_el = jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' );
737
 
738
+ if ( '' !== file_title_val.trim() ) {
739
+ var extension = file.name.split( '.' )[1];
740
+ file_name_wrapper_el.text( file_title_val + '.' + extension );
741
+ file.title = file_title_val;
742
+ }
743
 
744
  if ( file_desc_val != '' ) {
745
  file.description = file_desc_val;
1304
 
1305
  var file_name_wrapper_el = jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' );
1306
 
1307
+ if ( '' !== file_title_val.trim() ) {
1308
+ var extension = file.name.split( '.' )[1];
1309
+ file_name_wrapper_el.text( file_title_val + '.' + extension );
1310
  file.title = file_title_val;
1311
  }
1312
 
2651
 
2652
  var file_name_wrapper_el = jQuery( rtm_file_label ).siblings( '.plupload_file_name_wrapper' );
2653
 
2654
+ if ( '' !== file_title_val.trim() ) {
2655
+ var extension = file.name.split( '.' )[1];
2656
+ file_name_wrapper_el.text( file_title_val + '.' + extension );
2657
  file.title = file_title_val;
2658
  }
2659
 
app/helper/RTMediaActivityModel.php CHANGED
@@ -40,6 +40,24 @@ class RTMediaActivityModel extends RTDBModel {
40
  return parent::get( $columns, $offset, $per_page, $order_by );
41
  }
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  /**
44
  * Insert row.
45
  *
40
  return parent::get( $columns, $offset, $per_page, $order_by );
41
  }
42
 
43
+ /**
44
+ * Get activity without setting blog_id.
45
+ * This function is needed because there's no way to get activity of a different blog.
46
+ * Existing get method sets blog_id to current blog.
47
+ *
48
+ * @since v4.6.4
49
+ *
50
+ * @param array $columns Columns.
51
+ * @param bool|int $offset Offset.
52
+ * @param bool|int $per_page Per page.
53
+ * @param string $order_by Order by.
54
+ *
55
+ * @return array Returned data.
56
+ */
57
+ public function get_without_blog_id( $columns, $offset = false, $per_page = false, $order_by = 'activity_id DESC' ) {
58
+ return parent::get( $columns, $offset, $per_page, $order_by );
59
+ }
60
+
61
  /**
62
  * Insert row.
63
  *
app/main/controllers/activity/RTMediaBuddyPressActivity.php CHANGED
@@ -35,7 +35,6 @@ class RTMediaBuddyPressActivity {
35
  add_filter( 'bp_activity_truncate_entry', array( $this, 'bp_activity_truncate_entry' ), 10, 3 );
36
  }
37
  }
38
- add_action( 'bp_init', array( $this, 'non_threaded_comments' ) );
39
  add_action( 'bp_activity_comment_posted', array( $this, 'comment_sync' ), 10, 2 );
40
  add_action( 'bp_activity_delete_comment', array( $this, 'delete_comment_sync' ), 10, 2 );
41
  add_filter( 'bp_activity_allowed_tags', array( &$this, 'override_allowed_tags' ) );
@@ -557,22 +556,6 @@ class RTMediaBuddyPressActivity {
557
  }
558
  }
559
 
560
- /**
561
- * Save Non-threaded comments.
562
- */
563
- public function non_threaded_comments() {
564
- $action = sanitize_text_field( filter_input( INPUT_POST, 'action', FILTER_SANITIZE_STRING ) );
565
- if ( 'new_activity_comment' === $action ) {
566
- $activity_id = filter_input( INPUT_POST, 'form_id', FILTER_SANITIZE_NUMBER_INT );
567
- $disable_media = filter_input( INPUT_POST, 'rtmedia_disable_media_in_commented_media', FILTER_SANITIZE_STRING );
568
- $act = new BP_Activity_Activity( $activity_id );
569
-
570
- if ( 'rtmedia_update' === $act->type && ! empty( $disable_media ) ) {
571
- $_POST['comment_id'] = $activity_id;
572
- }
573
- }
574
- }
575
-
576
  /**
577
  * Groups posted update.
578
  *
35
  add_filter( 'bp_activity_truncate_entry', array( $this, 'bp_activity_truncate_entry' ), 10, 3 );
36
  }
37
  }
 
38
  add_action( 'bp_activity_comment_posted', array( $this, 'comment_sync' ), 10, 2 );
39
  add_action( 'bp_activity_delete_comment', array( $this, 'delete_comment_sync' ), 10, 2 );
40
  add_filter( 'bp_activity_allowed_tags', array( &$this, 'override_allowed_tags' ) );
556
  }
557
  }
558
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
559
  /**
560
  * Groups posted update.
561
  *
app/main/controllers/media/RTMediaMedia.php CHANGED
@@ -206,9 +206,20 @@ class RTMediaMedia {
206
  $rtmedia_points_media_id = $media_ids[0];
207
  }
208
 
 
 
 
209
  do_action( 'rtmedia_after_add_' . $rtmedia_type );
210
 
211
- do_action( 'rtmedia_after_add_media', $media_ids, $file_object, $uploaded );
 
 
 
 
 
 
 
 
212
 
213
  return $media_ids;
214
  }
206
  $rtmedia_points_media_id = $media_ids[0];
207
  }
208
 
209
+ /**
210
+ * Action after a specific type of media is added from rtMedia.
211
+ */
212
  do_action( 'rtmedia_after_add_' . $rtmedia_type );
213
 
214
+ /**
215
+ * Action after media is added from rtMedia.
216
+ *
217
+ * @param array $media_ids rtMedia IDs.
218
+ * @param array $file_object File details.
219
+ * @param array $uploaded Uploaded media details.
220
+ * @param array $attachment_ids Attachment IDs of uploaded media.
221
+ */
222
+ do_action( 'rtmedia_after_add_media', $media_ids, $file_object, $uploaded, $attachment_ids );
223
 
224
  return $media_ids;
225
  }
app/main/controllers/template/rtmedia-filters.php CHANGED
@@ -297,8 +297,9 @@ function replace_src_with_transcoded_file_url( $html, $rtmedia_media ) {
297
  $final_file_url = wp_get_attachment_url( $attachment_id );
298
  }
299
 
300
- // Add timestamp to resolve conflict with cache media.
301
- return preg_replace( '/src=["]([^"]+)["]/', 'src="' . $final_file_url . '?' . time() . '"', $html );
 
302
 
303
  }
304
  add_filter( 'rtmedia_single_content_filter', 'replace_src_with_transcoded_file_url', 100, 2 );
@@ -418,15 +419,27 @@ function replace_aws_img_urls_from_activities( $content, $activity = '' ) {
418
 
419
  if ( ! class_exists( 'RTAWSS3_Class' ) && ! class_exists( 'AS3CF_Utils' ) ) {
420
 
421
- // for WordPress backward compatibility.
 
 
 
 
 
 
 
422
  if ( function_exists( 'wp_get_upload_dir' ) ) {
423
  $uploads = wp_get_upload_dir();
424
  } else {
425
  $uploads = wp_upload_dir();
426
  }
 
 
 
 
427
 
428
  $baseurl = $uploads['baseurl'];
429
 
 
430
  if ( 0 === strpos( $url, $uploads['baseurl'] ) ) {
431
  $thumbnail_url = $url;
432
  } else {
297
  $final_file_url = wp_get_attachment_url( $attachment_id );
298
  }
299
 
300
+ $final_file_url = rtmedia_append_timestamp_in_url( $final_file_url );
301
+
302
+ return preg_replace( '/src=["]([^"]+)["]/', 'src="' . $final_file_url . '"', $html );
303
 
304
  }
305
  add_filter( 'rtmedia_single_content_filter', 'replace_src_with_transcoded_file_url', 100, 2 );
419
 
420
  if ( ! class_exists( 'RTAWSS3_Class' ) && ! class_exists( 'AS3CF_Utils' ) ) {
421
 
422
+ // Get blog_id of activity from rtMedia table.
423
+ $rt_activity_model = new RTMediaActivityModel();
424
+ $rtmedia_activity = $rt_activity_model->get_without_blog_id( array( 'activity_id' => $activity->id ) );
425
+ // Switch to activity blog to get correct uploads URL.
426
+ if ( ! empty( $rtmedia_activity[0]->blog_id ) ) {
427
+ switch_to_blog( $rtmedia_activity[0]->blog_id );
428
+ }
429
+ // For WordPress backward compatibility.
430
  if ( function_exists( 'wp_get_upload_dir' ) ) {
431
  $uploads = wp_get_upload_dir();
432
  } else {
433
  $uploads = wp_upload_dir();
434
  }
435
+ // Restore current blog if it was switched to other blog.
436
+ if ( ! empty( $rtmedia_activity[0]->blog_id ) ) {
437
+ restore_current_blog();
438
+ }
439
 
440
  $baseurl = $uploads['baseurl'];
441
 
442
+ $thumbnail_url = '';
443
  if ( 0 === strpos( $url, $uploads['baseurl'] ) ) {
444
  $thumbnail_url = $url;
445
  } else {
app/main/controllers/template/rtmedia-functions.php CHANGED
@@ -578,18 +578,18 @@ function rtmedia_media( $size_flag = true, $echo = true, $media_size = 'rt_media
578
  if ( isset( $rtmedia_media->media_type ) ) {
579
 
580
  if ( 'photo' === $rtmedia_media->media_type ) {
581
-
582
  $src = wp_get_attachment_image_src( $rtmedia_media->media_id, $media_size );
583
 
584
- /**
585
- * Used `set_url_scheme` because `esc_url` breaks the image if there is special characters are there into image name.
586
- * Added by checking the code from "wp-admin/includes/media.php:2740".
587
- * Because in media library, it was not breaking.
588
- *
589
- * Add timestamp to resolve conflict with cache image.
590
- */
591
- $html = "<img src='" . set_url_scheme( $src[0] . '?' . time() ) . "' alt='" . esc_attr( $rtmedia_media->post_name ) . "' />";
592
 
 
 
 
 
 
 
 
593
  } elseif ( 'video' === $rtmedia_media->media_type ) {
594
 
595
  $youtube_url = get_rtmedia_meta( $rtmedia_media->id, 'video_url_uploaded_from' );
@@ -746,9 +746,7 @@ function rtmedia_image( $size = 'rt_media_thumbnail', $id = false, $echo = true,
746
  }
747
 
748
  $src = apply_filters( 'rtmedia_media_thumb', $src, $media_object->id, $media_object->media_type );
749
-
750
- // Added timestamp because conflict with cache image.
751
- $src = $src . '?' . time();
752
 
753
  if ( true === $echo ) {
754
  echo wp_kses( set_url_scheme( $src ), RTMedia::expanded_allowed_tags() );
@@ -758,6 +756,24 @@ function rtmedia_image( $size = 'rt_media_thumbnail', $id = false, $echo = true,
758
 
759
  }
760
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
761
  /**
762
  * Get media alt
763
  *
@@ -3121,22 +3137,22 @@ if ( ! function_exists( 'rtmedia_who_like_html' ) ) {
3121
  }
3122
 
3123
  /**
3124
- * Get music cover art
3125
  *
3126
  * @param object $media_object Media details object.
3127
  *
3128
- * @return bool|string
3129
  */
3130
  function rtm_get_music_cover_art( $media_object ) {
3131
 
3132
- // return URL if cover_art already set.
3133
  $url = $media_object->cover_art;
3134
 
3135
  if ( ! empty( $url ) && ! is_numeric( $url ) ) {
3136
  return $url;
3137
  }
3138
 
3139
- // return false if covert_art is already analyzed earlier.
3140
  if ( -1 === intval( $url ) ) {
3141
  return false;
3142
  }
@@ -3147,25 +3163,25 @@ function rtm_get_music_cover_art( $media_object ) {
3147
  $media_tags = new RTMediaTags( $file );
3148
  $title_info = $media_tags->title;
3149
  $image_info = $media_tags->image;
3150
- $image_mime = $image_info['mime'];
3151
- $mime = explode( '/', $image_mime );
3152
  $id = $media_object->id;
3153
 
3154
- if ( ! empty( $image_info['data'] ) ) {
 
3155
 
3156
- $thumb_upload_info = wp_upload_bits( $title_info . '.' . $mime[ count( $mime ) - 1 ], null, $image_info['data'] );
3157
-
3158
- if ( is_array( $thumb_upload_info ) && ! empty( $thumb_upload_info['url'] ) ) {
3159
- $media_obj->model->update(
3160
- array(
3161
- 'cover_art' => $thumb_upload_info['url'],
3162
- ),
3163
- array(
3164
- 'id' => $id,
3165
- )
3166
- );
3167
 
3168
- return $thumb_upload_info['url'];
 
3169
  }
3170
  }
3171
 
@@ -3179,7 +3195,6 @@ function rtm_get_music_cover_art( $media_object ) {
3179
  );
3180
 
3181
  return false;
3182
-
3183
  }
3184
 
3185
  if ( ! function_exists( 'get_music_cover_art' ) ) {
@@ -3308,7 +3323,9 @@ function rtmedia_convert_date( $_date ) {
3308
  $no = $diff / $length[ $i ];
3309
  while ( $i >= 0 && $no <= 1 ) {
3310
  $i--;
3311
- $no = $diff / $length[ $i ];
 
 
3312
  }
3313
 
3314
  if ( $i < 0 ) {
578
  if ( isset( $rtmedia_media->media_type ) ) {
579
 
580
  if ( 'photo' === $rtmedia_media->media_type ) {
 
581
  $src = wp_get_attachment_image_src( $rtmedia_media->media_id, $media_size );
582
 
583
+ if ( ! empty( $src[0] ) ) {
584
+ $src = rtmedia_append_timestamp_in_url( $src[0] );
 
 
 
 
 
 
585
 
586
+ /**
587
+ * Used `set_url_scheme` because `esc_url` breaks the image if there is special characters are there into image name.
588
+ * Added by checking the code from "wp-admin/includes/media.php:2740".
589
+ * Because in media library, it was not breaking.
590
+ */
591
+ $html = "<img src='" . set_url_scheme( $src ) . "' alt='" . esc_attr( $rtmedia_media->post_name ) . "' />";
592
+ }
593
  } elseif ( 'video' === $rtmedia_media->media_type ) {
594
 
595
  $youtube_url = get_rtmedia_meta( $rtmedia_media->id, 'video_url_uploaded_from' );
746
  }
747
 
748
  $src = apply_filters( 'rtmedia_media_thumb', $src, $media_object->id, $media_object->media_type );
749
+ $src = rtmedia_append_timestamp_in_url( $src );
 
 
750
 
751
  if ( true === $echo ) {
752
  echo wp_kses( set_url_scheme( $src ), RTMedia::expanded_allowed_tags() );
756
 
757
  }
758
 
759
+ /**
760
+ * Appends timestamp at the end of the URL to bypass cache and load fresh image.
761
+ *
762
+ * @param string $src Image URL.
763
+ *
764
+ * @return string Modified URL.
765
+ */
766
+ function rtmedia_append_timestamp_in_url( $src ) {
767
+ $src_query = wp_parse_url( $src, PHP_URL_QUERY );
768
+ if ( empty( $src_query ) ) {
769
+ $src .= '?' . time();
770
+ } elseif ( false === strpos( $src, 'amazonaws.com' ) ) {
771
+ $src .= '&' . time();
772
+ }
773
+
774
+ return $src;
775
+ }
776
+
777
  /**
778
  * Get media alt
779
  *
3137
  }
3138
 
3139
  /**
3140
+ * Get music cover art.
3141
  *
3142
  * @param object $media_object Media details object.
3143
  *
3144
+ * @return string|bool Uploaded thumbnail URL | False.
3145
  */
3146
  function rtm_get_music_cover_art( $media_object ) {
3147
 
3148
+ // Return URL if cover_art already set.
3149
  $url = $media_object->cover_art;
3150
 
3151
  if ( ! empty( $url ) && ! is_numeric( $url ) ) {
3152
  return $url;
3153
  }
3154
 
3155
+ // Return false if covert_art is already analyzed earlier.
3156
  if ( -1 === intval( $url ) ) {
3157
  return false;
3158
  }
3163
  $media_tags = new RTMediaTags( $file );
3164
  $title_info = $media_tags->title;
3165
  $image_info = $media_tags->image;
 
 
3166
  $id = $media_object->id;
3167
 
3168
+ if ( ! empty( $image_info['data'] ) && ! empty( $image_info['mime'] ) ) {
3169
+ $mime = explode( '/', $image_info['mime'] );
3170
 
3171
+ if ( ! empty( $mime ) && is_array( $mime ) ) {
3172
+ $thumb_upload_info = wp_upload_bits( $title_info . '.' . $mime[ count( $mime ) - 1 ], null, $image_info['data'] );
3173
+ if ( ! empty( $thumb_upload_info['url'] ) ) {
3174
+ $media_obj->model->update(
3175
+ array(
3176
+ 'cover_art' => $thumb_upload_info['url'],
3177
+ ),
3178
+ array(
3179
+ 'id' => $id,
3180
+ )
3181
+ );
3182
 
3183
+ return $thumb_upload_info['url'];
3184
+ }
3185
  }
3186
  }
3187
 
3195
  );
3196
 
3197
  return false;
 
3198
  }
3199
 
3200
  if ( ! function_exists( 'get_music_cover_art' ) ) {
3323
  $no = $diff / $length[ $i ];
3324
  while ( $i >= 0 && $no <= 1 ) {
3325
  $i--;
3326
+ if ( $i >= 0 ) {
3327
+ $no = $diff / $length[ $i ];
3328
+ }
3329
  }
3330
 
3331
  if ( $i < 0 ) {
app/main/controllers/upload/RTMediaUploadEndpoint.php CHANGED
@@ -270,23 +270,25 @@ class RTMediaUploadEndpoint {
270
  }
271
  $obj_activity = new RTMediaActivity( $update_activity_media, $privacy, false );
272
 
273
- global $wpdb, $bp;
274
- $user = get_userdata( $same_medias[0]->media_author );
275
- $username = '<a href="' . esc_url( get_rtmedia_user_link( $same_medias[0]->media_author ) ) . '">' . esc_html( $user->display_name ) . '</a>';
276
-
277
- // translators: 1: Username, 2: Number of medias, 3: Media slug.
278
- $action = sprintf( esc_html__( '%1$s added %2$d %3$s', 'buddypress-media' ), $username, count( $same_medias ), RTMEDIA_MEDIA_SLUG );
279
- $action = apply_filters( 'rtmedia_buddypress_action_text_fitler_multiple_media', $action, $username, count( $same_medias ), $user->display_name );
280
-
281
- $wpdb->update(
282
- $bp->activity->table_name,
283
- array(
284
- 'type' => 'rtmedia_update',
285
- 'content' => $obj_activity->create_activity_html(),
286
- 'action' => $action,
287
- ),
288
- array( 'id' => $activity_id )
289
- );
 
 
290
  }
291
 
292
  // update group last active.
270
  }
271
  $obj_activity = new RTMediaActivity( $update_activity_media, $privacy, false );
272
 
273
+ if ( ! empty( $same_medias[0] ) && ! empty( $activity_id ) ) {
274
+ global $wpdb, $bp;
275
+ $user = get_userdata( $same_medias[0]->media_author );
276
+ $username = '<a href="' . esc_url( get_rtmedia_user_link( $same_medias[0]->media_author ) ) . '">' . esc_html( $user->display_name ) . '</a>';
277
+
278
+ // translators: 1: Username, 2: Number of medias, 3: Media slug.
279
+ $action = sprintf( esc_html__( '%1$s added %2$d %3$s', 'buddypress-media' ), $username, count( $same_medias ), RTMEDIA_MEDIA_SLUG );
280
+ $action = apply_filters( 'rtmedia_buddypress_action_text_fitler_multiple_media', $action, $username, count( $same_medias ), $user->display_name );
281
+
282
+ $wpdb->update(
283
+ $bp->activity->table_name,
284
+ array(
285
+ 'type' => 'rtmedia_update',
286
+ 'content' => $obj_activity->create_activity_html(),
287
+ 'action' => $action,
288
+ ),
289
+ array( 'id' => $activity_id )
290
+ );
291
+ }
292
  }
293
 
294
  // update group last active.
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
4
  Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
5
  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.3
7
  Author: rtCamp
8
  Text Domain: buddypress-media
9
  Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
@@ -21,7 +21,7 @@ if ( ! defined( 'RTMEDIA_VERSION' ) ) {
21
  /**
22
  * The version of the plugin
23
  */
24
- define( 'RTMEDIA_VERSION', '4.6.3' );
25
  }
26
 
27
  if ( ! defined( 'RTMEDIA_PATH' ) ) {
3
  Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
4
  Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
5
  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.4
7
  Author: rtCamp
8
  Text Domain: buddypress-media
9
  Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
21
  /**
22
  * The version of the plugin
23
  */
24
+ define( 'RTMEDIA_VERSION', '4.6.4' );
25
  }
26
 
27
  if ( ! defined( 'RTMEDIA_PATH' ) ) {
languages/buddypress-media.po CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.6.3\n"
6
  "Report-Msgid-Bugs-To: https://rtmedia.io/support/\n"
7
- "POT-Creation-Date: 2020-04-30 10:14:18+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -2286,7 +2286,7 @@ msgid "No time remaining."
2286
  msgstr ""
2287
 
2288
  #: app/main/RTMedia.php:162 app/main/RTMedia.php:1498
2289
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:744
2290
  #: app/main/controllers/shortcodes/RTMediaGalleryShortcode.php:112
2291
  #: app/main/controllers/upload/processors/RTMediaUploadFile.php:246
2292
  msgid "Media Files"
@@ -2460,16 +2460,16 @@ msgstr ""
2460
  #: app/main/RTMedia.php:1344
2461
  #: app/main/controllers/media/RTMediaGalleryItemAction.php:86
2462
  #: app/main/controllers/media/RTMediaGalleryItemAction.php:109
2463
- #: app/main/controllers/template/rtmedia-functions.php:1261
2464
- #: app/main/controllers/template/rtmedia-functions.php:1280
2465
  msgid "Edit"
2466
  msgstr ""
2467
 
2468
  #: app/main/RTMedia.php:1345
2469
  #: app/main/controllers/media/RTMediaGalleryItemAction.php:89
2470
  #: app/main/controllers/media/RTMediaGalleryItemAction.php:109
2471
- #: app/main/controllers/template/rtmedia-functions.php:2220
2472
- #: app/main/controllers/template/rtmedia-functions.php:2229
2473
  #: templates/media/album-single-edit.php:94
2474
  msgid "Delete"
2475
  msgstr ""
@@ -2558,61 +2558,61 @@ msgstr ""
2558
  msgid "I agree to"
2559
  msgstr ""
2560
 
2561
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:457
2562
  #: app/main/controllers/upload/RTMediaUploadEndpoint.php:60
2563
  #: app/main/controllers/upload/RTMediaUploadEndpoint.php:74
2564
  msgid "Terms and Conditions checkbox not found!"
2565
  msgstr ""
2566
 
2567
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:791
2568
  #: app/main/controllers/media/RTMediaComment.php:204
2569
  #: app/main/controllers/shortcodes/RTMediaUploadShortcode.php:125
2570
- #: app/main/controllers/template/rtmedia-functions.php:2259
2571
  msgid "You are not allowed to upload/attach media."
2572
  msgstr ""
2573
 
2574
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:938
2575
- #: app/main/controllers/media/RTMediaMedia.php:782
2576
  #. translators: 1: user link, 2: media.
2577
  #. translators: 1: username, 2: media type, 3: media name, 4: total media.
2578
  msgid "%1$s added a %2$s"
2579
  msgstr ""
2580
 
2581
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:946
2582
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:949
2583
- #: app/main/controllers/upload/RTMediaUploadEndpoint.php:278
2584
  #. translators: 1: user link, 2: media count, 3: media.
2585
  #. translators: 1: user link, 2: media count, 3: rtMedia slug.
2586
  #. translators: 1: Username, 2: Number of medias, 3: Media slug.
2587
  msgid "%1$s added %2$d %3$s"
2588
  msgstr ""
2589
 
2590
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:1003
2591
  #. translators: 1: username, 2: media, 3: group name.
2592
  msgid "%1$s liked a %2$s in the group %3$s"
2593
  msgstr ""
2594
 
2595
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:1007
2596
  #. translators: 1: username, 2: media.
2597
  msgid "%1$s liked their %2$s"
2598
  msgstr ""
2599
 
2600
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:1012
2601
  #. translators: 1: username, 2: author, 3: media.
2602
  msgid "%1$s liked %2$s's %3$s"
2603
  msgstr ""
2604
 
2605
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:1102
2606
  #. translators: 1: username, 2: media, 3: group name.
2607
  msgid "%1$s commented on a %2$s in the group %3$s"
2608
  msgstr ""
2609
 
2610
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:1107
2611
  #. translators: 1: username, 2: media.
2612
  msgid "%1$s commented on their %2$s"
2613
  msgstr ""
2614
 
2615
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:1112
2616
  #. translators: 1: username, 2: author, 3: media.
2617
  msgid "%1$s commented on %2$s's %3$s"
2618
  msgstr ""
@@ -2997,11 +2997,11 @@ msgstr ""
2997
  msgid " to login."
2998
  msgstr ""
2999
 
3000
- #: app/main/controllers/media/RTMediaMedia.php:650
3001
  msgid "Error creating attachment for the media file, please try again"
3002
  msgstr ""
3003
 
3004
- #: app/main/controllers/media/RTMediaMedia.php:782
3005
  msgid "%1$s added %4$d %3$s"
3006
  msgstr ""
3007
 
@@ -3168,7 +3168,7 @@ msgid "Doing wrong, invalid AJAX request!"
3168
  msgstr ""
3169
 
3170
  #: app/main/controllers/template/rtmedia-ajax-actions.php:144
3171
- #: app/main/controllers/template/rtmedia-functions.php:2157
3172
  msgid "Comment"
3173
  msgstr ""
3174
 
@@ -3184,202 +3184,202 @@ msgstr ""
3184
  msgid "Delete Album"
3185
  msgstr ""
3186
 
3187
- #: app/main/controllers/template/rtmedia-filters.php:918
3188
- #: app/main/controllers/template/rtmedia-functions.php:4633
3189
  msgid "rtMedia Shortcode Uploads"
3190
  msgstr ""
3191
 
3192
- #: app/main/controllers/template/rtmedia-filters.php:922
3193
- #: app/main/controllers/template/rtmedia-functions.php:4515
3194
  msgid "rtMedia Activities"
3195
  msgstr ""
3196
 
3197
- #: app/main/controllers/template/rtmedia-filters.php:926
3198
  msgid "rtMedia Comments"
3199
  msgstr ""
3200
 
3201
- #: app/main/controllers/template/rtmedia-filters.php:930
3202
- #: app/main/controllers/template/rtmedia-functions.php:4860
3203
  msgid "rtMedia Media Views"
3204
  msgstr ""
3205
 
3206
- #: app/main/controllers/template/rtmedia-filters.php:934
3207
- #: app/main/controllers/template/rtmedia-functions.php:4961
3208
  msgid "rtMedia Media Likes"
3209
  msgstr ""
3210
 
3211
- #: app/main/controllers/template/rtmedia-filters.php:952
3212
  msgid "rtMedia Eraser"
3213
  msgstr ""
3214
 
3215
- #: app/main/controllers/template/rtmedia-filters.php:957
3216
  msgid "rtMedia Likes Eraser"
3217
  msgstr ""
3218
 
3219
- #: app/main/controllers/template/rtmedia-filters.php:962
3220
  msgid "rtMedia Album Eraser"
3221
  msgstr ""
3222
 
3223
- #: app/main/controllers/template/rtmedia-functions.php:1346
3224
  msgid "There are no comments on this media yet."
3225
  msgstr ""
3226
 
3227
- #: app/main/controllers/template/rtmedia-functions.php:1382
3228
  #. translators: %s Count of comments.
3229
  msgid "Show all %s comments"
3230
  msgstr ""
3231
 
3232
- #: app/main/controllers/template/rtmedia-functions.php:1415
3233
  msgid "Delete Comment"
3234
  msgstr ""
3235
 
3236
- #: app/main/controllers/template/rtmedia-functions.php:1773
3237
  msgid "Go to page no : "
3238
  msgstr ""
3239
 
3240
- #: app/main/controllers/template/rtmedia-functions.php:1778
3241
  msgid "Go"
3242
  msgstr ""
3243
 
3244
- #: app/main/controllers/template/rtmedia-functions.php:2155
3245
  msgid "Type Comment..."
3246
  msgstr ""
3247
 
3248
- #: app/main/controllers/template/rtmedia-functions.php:2220
3249
- #: app/main/controllers/template/rtmedia-functions.php:2229
3250
  msgid "Delete Media"
3251
  msgstr ""
3252
 
3253
- #: app/main/controllers/template/rtmedia-functions.php:2483
3254
  msgid "Profile Albums"
3255
  msgstr ""
3256
 
3257
- #: app/main/controllers/template/rtmedia-functions.php:2487
3258
- #: app/main/controllers/template/rtmedia-functions.php:2536
3259
  msgid "Group Albums"
3260
  msgstr ""
3261
 
3262
- #: app/main/controllers/template/rtmedia-functions.php:2717
3263
  msgid "Privacy : "
3264
  msgstr ""
3265
 
3266
- #: app/main/controllers/template/rtmedia-functions.php:3069
3267
  msgid "You like this"
3268
  msgstr ""
3269
 
3270
- #: app/main/controllers/template/rtmedia-functions.php:3083
3271
  msgid "You and "
3272
  msgstr ""
3273
 
3274
- #: app/main/controllers/template/rtmedia-functions.php:3106
3275
  msgid " person likes this"
3276
  msgid_plural " people like this"
3277
  msgstr[0] ""
3278
  msgstr[1] ""
3279
 
3280
- #: app/main/controllers/template/rtmedia-functions.php:3227
3281
  msgid "Public"
3282
  msgstr ""
3283
 
3284
- #: app/main/controllers/template/rtmedia-functions.php:3232
3285
  msgid "All members"
3286
  msgstr ""
3287
 
3288
- #: app/main/controllers/template/rtmedia-functions.php:3237
3289
  msgid "Your friends"
3290
  msgstr ""
3291
 
3292
- #: app/main/controllers/template/rtmedia-functions.php:3242
3293
  msgid "Only you"
3294
  msgstr ""
3295
 
3296
- #: app/main/controllers/template/rtmedia-functions.php:3247
3297
  msgid "Blocked temporarily"
3298
  msgstr ""
3299
 
3300
- #: app/main/controllers/template/rtmedia-functions.php:3305
3301
  #. translators: %s: count of hour/minute/second.
3302
  msgid "%s ago "
3303
  msgstr ""
3304
 
3305
- #: app/main/controllers/template/rtmedia-functions.php:3325
3306
  #. translators: %s: number of seconds.
3307
  msgid "%s second"
3308
  msgid_plural "%s seconds"
3309
  msgstr[0] ""
3310
  msgstr[1] ""
3311
 
3312
- #: app/main/controllers/template/rtmedia-functions.php:3330
3313
  #. translators: %s: number of minutes.
3314
  msgid "%s minute"
3315
  msgid_plural "%s minutes"
3316
  msgstr[0] ""
3317
  msgstr[1] ""
3318
 
3319
- #: app/main/controllers/template/rtmedia-functions.php:3335
3320
  #. translators: %s: number of hours.
3321
  msgid "%s hour"
3322
  msgid_plural "%s hours"
3323
  msgstr[0] ""
3324
  msgstr[1] ""
3325
 
3326
- #: app/main/controllers/template/rtmedia-functions.php:3962
3327
  #. translators: %s: date format, see http:php.net/date.
3328
  msgid "View Conversation"
3329
  msgstr ""
3330
 
3331
- #: app/main/controllers/template/rtmedia-functions.php:4541
3332
  msgid "Activity Date"
3333
  msgstr ""
3334
 
3335
- #: app/main/controllers/template/rtmedia-functions.php:4545
3336
  msgid "Activity Content"
3337
  msgstr ""
3338
 
3339
- #: app/main/controllers/template/rtmedia-functions.php:4549
3340
- #: app/main/controllers/template/rtmedia-functions.php:4770
3341
  msgid "Attachments"
3342
  msgstr ""
3343
 
3344
- #: app/main/controllers/template/rtmedia-functions.php:4642
3345
  msgid "Media Upload Date"
3346
  msgstr ""
3347
 
3348
- #: app/main/controllers/template/rtmedia-functions.php:4646
3349
  msgid "Media Title"
3350
  msgstr ""
3351
 
3352
- #: app/main/controllers/template/rtmedia-functions.php:4650
3353
- #: app/main/controllers/template/rtmedia-functions.php:4864
3354
- #: app/main/controllers/template/rtmedia-functions.php:4965
3355
  msgid "Media URL"
3356
  msgstr ""
3357
 
3358
- #: app/main/controllers/template/rtmedia-functions.php:4654
3359
  msgid "Album Title"
3360
  msgstr ""
3361
 
3362
- #: app/main/controllers/template/rtmedia-functions.php:4742
3363
  msgid "rtMedia Activity Comments"
3364
  msgstr ""
3365
 
3366
- #: app/main/controllers/template/rtmedia-functions.php:4762
3367
  msgid "Comment Date"
3368
  msgstr ""
3369
 
3370
- #: app/main/controllers/template/rtmedia-functions.php:4766
3371
  msgid "Comment Content"
3372
  msgstr ""
3373
 
3374
- #: app/main/controllers/template/rtmedia-functions.php:4868
3375
  msgid "Number of Views"
3376
  msgstr ""
3377
 
3378
- #: app/main/controllers/template/rtmedia-functions.php:4872
3379
  msgid "Date of First View"
3380
  msgstr ""
3381
 
3382
- #: app/main/controllers/template/rtmedia-functions.php:4969
3383
  msgid "Date"
3384
  msgstr ""
3385
 
@@ -3473,7 +3473,7 @@ msgid "Album List"
3473
  msgstr ""
3474
 
3475
  #: templates/media/album-gallery.php:83 templates/media/media-gallery.php:123
3476
- #: templates/media/media-single-edit.php:73
3477
  #: templates/media/media-single.php:212
3478
  msgid "Sorry !! There's no media found for the request !!"
3479
  msgstr ""
@@ -3497,7 +3497,7 @@ msgid "Description: "
3497
  msgstr ""
3498
 
3499
  #: templates/media/album-single-edit.php:71
3500
- #: templates/media/media-single-edit.php:60
3501
  msgid "Back"
3502
  msgstr ""
3503
 
@@ -3537,11 +3537,11 @@ msgstr ""
3537
  msgid "Media Gallery"
3538
  msgstr ""
3539
 
3540
- #: templates/media/media-single-edit.php:58
3541
  msgid "Save"
3542
  msgstr ""
3543
 
3544
- #: templates/media/media-single-edit.php:67
3545
  msgid "Sorry !! You do not have rights to edit this media"
3546
  msgstr ""
3547
 
2
  # This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.6.4\n"
6
  "Report-Msgid-Bugs-To: https://rtmedia.io/support/\n"
7
+ "POT-Creation-Date: 2020-07-15 12:31:21+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2286
  msgstr ""
2287
 
2288
  #: app/main/RTMedia.php:162 app/main/RTMedia.php:1498
2289
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:727
2290
  #: app/main/controllers/shortcodes/RTMediaGalleryShortcode.php:112
2291
  #: app/main/controllers/upload/processors/RTMediaUploadFile.php:246
2292
  msgid "Media Files"
2460
  #: app/main/RTMedia.php:1344
2461
  #: app/main/controllers/media/RTMediaGalleryItemAction.php:86
2462
  #: app/main/controllers/media/RTMediaGalleryItemAction.php:109
2463
+ #: app/main/controllers/template/rtmedia-functions.php:1277
2464
+ #: app/main/controllers/template/rtmedia-functions.php:1296
2465
  msgid "Edit"
2466
  msgstr ""
2467
 
2468
  #: app/main/RTMedia.php:1345
2469
  #: app/main/controllers/media/RTMediaGalleryItemAction.php:89
2470
  #: app/main/controllers/media/RTMediaGalleryItemAction.php:109
2471
+ #: app/main/controllers/template/rtmedia-functions.php:2236
2472
+ #: app/main/controllers/template/rtmedia-functions.php:2245
2473
  #: templates/media/album-single-edit.php:94
2474
  msgid "Delete"
2475
  msgstr ""
2558
  msgid "I agree to"
2559
  msgstr ""
2560
 
2561
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:456
2562
  #: app/main/controllers/upload/RTMediaUploadEndpoint.php:60
2563
  #: app/main/controllers/upload/RTMediaUploadEndpoint.php:74
2564
  msgid "Terms and Conditions checkbox not found!"
2565
  msgstr ""
2566
 
2567
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:774
2568
  #: app/main/controllers/media/RTMediaComment.php:204
2569
  #: app/main/controllers/shortcodes/RTMediaUploadShortcode.php:125
2570
+ #: app/main/controllers/template/rtmedia-functions.php:2275
2571
  msgid "You are not allowed to upload/attach media."
2572
  msgstr ""
2573
 
2574
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:921
2575
+ #: app/main/controllers/media/RTMediaMedia.php:793
2576
  #. translators: 1: user link, 2: media.
2577
  #. translators: 1: username, 2: media type, 3: media name, 4: total media.
2578
  msgid "%1$s added a %2$s"
2579
  msgstr ""
2580
 
2581
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:929
2582
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:932
2583
+ #: app/main/controllers/upload/RTMediaUploadEndpoint.php:279
2584
  #. translators: 1: user link, 2: media count, 3: media.
2585
  #. translators: 1: user link, 2: media count, 3: rtMedia slug.
2586
  #. translators: 1: Username, 2: Number of medias, 3: Media slug.
2587
  msgid "%1$s added %2$d %3$s"
2588
  msgstr ""
2589
 
2590
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:986
2591
  #. translators: 1: username, 2: media, 3: group name.
2592
  msgid "%1$s liked a %2$s in the group %3$s"
2593
  msgstr ""
2594
 
2595
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:990
2596
  #. translators: 1: username, 2: media.
2597
  msgid "%1$s liked their %2$s"
2598
  msgstr ""
2599
 
2600
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:995
2601
  #. translators: 1: username, 2: author, 3: media.
2602
  msgid "%1$s liked %2$s's %3$s"
2603
  msgstr ""
2604
 
2605
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:1085
2606
  #. translators: 1: username, 2: media, 3: group name.
2607
  msgid "%1$s commented on a %2$s in the group %3$s"
2608
  msgstr ""
2609
 
2610
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:1090
2611
  #. translators: 1: username, 2: media.
2612
  msgid "%1$s commented on their %2$s"
2613
  msgstr ""
2614
 
2615
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:1095
2616
  #. translators: 1: username, 2: author, 3: media.
2617
  msgid "%1$s commented on %2$s's %3$s"
2618
  msgstr ""
2997
  msgid " to login."
2998
  msgstr ""
2999
 
3000
+ #: app/main/controllers/media/RTMediaMedia.php:661
3001
  msgid "Error creating attachment for the media file, please try again"
3002
  msgstr ""
3003
 
3004
+ #: app/main/controllers/media/RTMediaMedia.php:793
3005
  msgid "%1$s added %4$d %3$s"
3006
  msgstr ""
3007
 
3168
  msgstr ""
3169
 
3170
  #: app/main/controllers/template/rtmedia-ajax-actions.php:144
3171
+ #: app/main/controllers/template/rtmedia-functions.php:2173
3172
  msgid "Comment"
3173
  msgstr ""
3174
 
3184
  msgid "Delete Album"
3185
  msgstr ""
3186
 
3187
+ #: app/main/controllers/template/rtmedia-filters.php:931
3188
+ #: app/main/controllers/template/rtmedia-functions.php:4650
3189
  msgid "rtMedia Shortcode Uploads"
3190
  msgstr ""
3191
 
3192
+ #: app/main/controllers/template/rtmedia-filters.php:935
3193
+ #: app/main/controllers/template/rtmedia-functions.php:4532
3194
  msgid "rtMedia Activities"
3195
  msgstr ""
3196
 
3197
+ #: app/main/controllers/template/rtmedia-filters.php:939
3198
  msgid "rtMedia Comments"
3199
  msgstr ""
3200
 
3201
+ #: app/main/controllers/template/rtmedia-filters.php:943
3202
+ #: app/main/controllers/template/rtmedia-functions.php:4877
3203
  msgid "rtMedia Media Views"
3204
  msgstr ""
3205
 
3206
+ #: app/main/controllers/template/rtmedia-filters.php:947
3207
+ #: app/main/controllers/template/rtmedia-functions.php:4978
3208
  msgid "rtMedia Media Likes"
3209
  msgstr ""
3210
 
3211
+ #: app/main/controllers/template/rtmedia-filters.php:965
3212
  msgid "rtMedia Eraser"
3213
  msgstr ""
3214
 
3215
+ #: app/main/controllers/template/rtmedia-filters.php:970
3216
  msgid "rtMedia Likes Eraser"
3217
  msgstr ""
3218
 
3219
+ #: app/main/controllers/template/rtmedia-filters.php:975
3220
  msgid "rtMedia Album Eraser"
3221
  msgstr ""
3222
 
3223
+ #: app/main/controllers/template/rtmedia-functions.php:1362
3224
  msgid "There are no comments on this media yet."
3225
  msgstr ""
3226
 
3227
+ #: app/main/controllers/template/rtmedia-functions.php:1398
3228
  #. translators: %s Count of comments.
3229
  msgid "Show all %s comments"
3230
  msgstr ""
3231
 
3232
+ #: app/main/controllers/template/rtmedia-functions.php:1431
3233
  msgid "Delete Comment"
3234
  msgstr ""
3235
 
3236
+ #: app/main/controllers/template/rtmedia-functions.php:1789
3237
  msgid "Go to page no : "
3238
  msgstr ""
3239
 
3240
+ #: app/main/controllers/template/rtmedia-functions.php:1794
3241
  msgid "Go"
3242
  msgstr ""
3243
 
3244
+ #: app/main/controllers/template/rtmedia-functions.php:2171
3245
  msgid "Type Comment..."
3246
  msgstr ""
3247
 
3248
+ #: app/main/controllers/template/rtmedia-functions.php:2236
3249
+ #: app/main/controllers/template/rtmedia-functions.php:2245
3250
  msgid "Delete Media"
3251
  msgstr ""
3252
 
3253
+ #: app/main/controllers/template/rtmedia-functions.php:2499
3254
  msgid "Profile Albums"
3255
  msgstr ""
3256
 
3257
+ #: app/main/controllers/template/rtmedia-functions.php:2503
3258
+ #: app/main/controllers/template/rtmedia-functions.php:2552
3259
  msgid "Group Albums"
3260
  msgstr ""
3261
 
3262
+ #: app/main/controllers/template/rtmedia-functions.php:2733
3263
  msgid "Privacy : "
3264
  msgstr ""
3265
 
3266
+ #: app/main/controllers/template/rtmedia-functions.php:3085
3267
  msgid "You like this"
3268
  msgstr ""
3269
 
3270
+ #: app/main/controllers/template/rtmedia-functions.php:3099
3271
  msgid "You and "
3272
  msgstr ""
3273
 
3274
+ #: app/main/controllers/template/rtmedia-functions.php:3122
3275
  msgid " person likes this"
3276
  msgid_plural " people like this"
3277
  msgstr[0] ""
3278
  msgstr[1] ""
3279
 
3280
+ #: app/main/controllers/template/rtmedia-functions.php:3242
3281
  msgid "Public"
3282
  msgstr ""
3283
 
3284
+ #: app/main/controllers/template/rtmedia-functions.php:3247
3285
  msgid "All members"
3286
  msgstr ""
3287
 
3288
+ #: app/main/controllers/template/rtmedia-functions.php:3252
3289
  msgid "Your friends"
3290
  msgstr ""
3291
 
3292
+ #: app/main/controllers/template/rtmedia-functions.php:3257
3293
  msgid "Only you"
3294
  msgstr ""
3295
 
3296
+ #: app/main/controllers/template/rtmedia-functions.php:3262
3297
  msgid "Blocked temporarily"
3298
  msgstr ""
3299
 
3300
+ #: app/main/controllers/template/rtmedia-functions.php:3320
3301
  #. translators: %s: count of hour/minute/second.
3302
  msgid "%s ago "
3303
  msgstr ""
3304
 
3305
+ #: app/main/controllers/template/rtmedia-functions.php:3342
3306
  #. translators: %s: number of seconds.
3307
  msgid "%s second"
3308
  msgid_plural "%s seconds"
3309
  msgstr[0] ""
3310
  msgstr[1] ""
3311
 
3312
+ #: app/main/controllers/template/rtmedia-functions.php:3347
3313
  #. translators: %s: number of minutes.
3314
  msgid "%s minute"
3315
  msgid_plural "%s minutes"
3316
  msgstr[0] ""
3317
  msgstr[1] ""
3318
 
3319
+ #: app/main/controllers/template/rtmedia-functions.php:3352
3320
  #. translators: %s: number of hours.
3321
  msgid "%s hour"
3322
  msgid_plural "%s hours"
3323
  msgstr[0] ""
3324
  msgstr[1] ""
3325
 
3326
+ #: app/main/controllers/template/rtmedia-functions.php:3979
3327
  #. translators: %s: date format, see http:php.net/date.
3328
  msgid "View Conversation"
3329
  msgstr ""
3330
 
3331
+ #: app/main/controllers/template/rtmedia-functions.php:4558
3332
  msgid "Activity Date"
3333
  msgstr ""
3334
 
3335
+ #: app/main/controllers/template/rtmedia-functions.php:4562
3336
  msgid "Activity Content"
3337
  msgstr ""
3338
 
3339
+ #: app/main/controllers/template/rtmedia-functions.php:4566
3340
+ #: app/main/controllers/template/rtmedia-functions.php:4787
3341
  msgid "Attachments"
3342
  msgstr ""
3343
 
3344
+ #: app/main/controllers/template/rtmedia-functions.php:4659
3345
  msgid "Media Upload Date"
3346
  msgstr ""
3347
 
3348
+ #: app/main/controllers/template/rtmedia-functions.php:4663
3349
  msgid "Media Title"
3350
  msgstr ""
3351
 
3352
+ #: app/main/controllers/template/rtmedia-functions.php:4667
3353
+ #: app/main/controllers/template/rtmedia-functions.php:4881
3354
+ #: app/main/controllers/template/rtmedia-functions.php:4982
3355
  msgid "Media URL"
3356
  msgstr ""
3357
 
3358
+ #: app/main/controllers/template/rtmedia-functions.php:4671
3359
  msgid "Album Title"
3360
  msgstr ""
3361
 
3362
+ #: app/main/controllers/template/rtmedia-functions.php:4759
3363
  msgid "rtMedia Activity Comments"
3364
  msgstr ""
3365
 
3366
+ #: app/main/controllers/template/rtmedia-functions.php:4779
3367
  msgid "Comment Date"
3368
  msgstr ""
3369
 
3370
+ #: app/main/controllers/template/rtmedia-functions.php:4783
3371
  msgid "Comment Content"
3372
  msgstr ""
3373
 
3374
+ #: app/main/controllers/template/rtmedia-functions.php:4885
3375
  msgid "Number of Views"
3376
  msgstr ""
3377
 
3378
+ #: app/main/controllers/template/rtmedia-functions.php:4889
3379
  msgid "Date of First View"
3380
  msgstr ""
3381
 
3382
+ #: app/main/controllers/template/rtmedia-functions.php:4986
3383
  msgid "Date"
3384
  msgstr ""
3385
 
3473
  msgstr ""
3474
 
3475
  #: templates/media/album-gallery.php:83 templates/media/media-gallery.php:123
3476
+ #: templates/media/media-single-edit.php:74
3477
  #: templates/media/media-single.php:212
3478
  msgid "Sorry !! There's no media found for the request !!"
3479
  msgstr ""
3497
  msgstr ""
3498
 
3499
  #: templates/media/album-single-edit.php:71
3500
+ #: templates/media/media-single-edit.php:61
3501
  msgid "Back"
3502
  msgstr ""
3503
 
3537
  msgid "Media Gallery"
3538
  msgstr ""
3539
 
3540
+ #: templates/media/media-single-edit.php:60
3541
  msgid "Save"
3542
  msgstr ""
3543
 
3544
+ #: templates/media/media-single-edit.php:68
3545
  msgid "Sorry !! You do not have rights to edit this media"
3546
  msgstr ""
3547
 
readme.txt CHANGED
@@ -4,8 +4,8 @@ Tags: BuddyPress, media, multimedia, album, audio, songs, music, video, photo, i
4
  License: GPLv2 or later
5
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
6
  Requires at least: WordPress 4.1
7
- Tested up to: 5.4
8
- Stable tag: 4.6.3
9
 
10
  Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
11
 
@@ -134,6 +134,22 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
134
 
135
  == Changelog ==
136
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  = 4.6.3 [April 30, 2020] =
138
 
139
  * FIXED
@@ -1693,8 +1709,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
1693
 
1694
  == Upgrade Notice ==
1695
 
1696
- = 4.6.3 =
1697
- rtMedia 4.6.3 with added fix for fatal errors issue with Yoast plugin along with the missing timestamp of media and added script tag for rtMedia social sync add-on
1698
 
1699
  == Sponsors ==
1700
 
4
  License: GPLv2 or later
5
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
6
  Requires at least: WordPress 4.1
7
+ Tested up to: 5.4.2
8
+ Stable tag: 4.6.4
9
 
10
  Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
11
 
134
 
135
  == Changelog ==
136
 
137
+ = 4.6.4 [July 16, 2020] =
138
+
139
+ * Enhancement
140
+
141
+ * Support for Amazon S3 presigned URLs
142
+ * Add attachment_ids in `rtmedia_after_add_media` action hook
143
+
144
+ * FIXED
145
+
146
+ * Console errors on media editing
147
+ * Extension getting changed when renaming media before upload
148
+ * Activities not in sync with other subsites in a multisite network, when each subsite has a separate BuddyPress activity feed
149
+ * PHP Notices and Warnings
150
+ * Comment nesting issue with media activities
151
+ * Wrong timestamp while adding comments
152
+
153
  = 4.6.3 [April 30, 2020] =
154
 
155
  * FIXED
1709
 
1710
  == Upgrade Notice ==
1711
 
1712
+ = 4.6.4 =
1713
+ rtMedia 4.6.4 with support for Amazon S3 presigned URLs, along with some fixes such as: issue with nested comments, activities sync issue in a multisite network and other small fixes and improvements.
1714
 
1715
  == Sponsors ==
1716
 
templates/media/media-single-edit.php CHANGED
@@ -55,9 +55,10 @@
55
  <?php do_action( 'rtmedia_add_edit_tab_content', rtmedia_type() ); ?>
56
  </div>
57
  <div class="rtmedia-editor-buttons">
58
- <input type="submit" class="button rtm-button rtm-button-save" onclick="imageEdit.save(<?php echo esc_attr( $rtmedia_media->media_id ) . ', \'' . esc_attr( $media_id_nonce ); ?>')" value="<?php esc_attr_e( 'Save', 'buddypress-media' ); ?>"/>
59
- <a class="button rtm-button rtm-button-back"
60
- href="<?php rtmedia_permalink(); ?>"><?php esc_html_e( 'Back', 'buddypress-media' ); ?></a>
 
61
  </div>
62
  </div>
63
  </form>
55
  <?php do_action( 'rtmedia_add_edit_tab_content', rtmedia_type() ); ?>
56
  </div>
57
  <div class="rtmedia-editor-buttons">
58
+ <input type="hidden" id="rtmedia-editor-nonce" name="rtmedia-editor-nonce" value="<?php echo esc_attr( $media_id_nonce ); ?>" />
59
+ <input type="hidden" id="rtmedia-editor-media-id" name="rtmedia-editor-media-id" value="<?php echo esc_attr( $rtmedia_media->media_id ); ?>" />
60
+ <input type="submit" class="button rtm-button rtm-button-save" value="<?php esc_attr_e( 'Save', 'buddypress-media' ); ?>"/>
61
+ <a class="button rtm-button rtm-button-back" href="<?php rtmedia_permalink(); ?>"><?php esc_html_e( 'Back', 'buddypress-media' ); ?></a>
62
  </div>
63
  </div>
64
  </form>