Skip to content

Commit 5363270

Browse files
authored
Merge pull request #1643 from rtMediaWP/develop
Version update v4.6.3
2 parents 1a7a537 + 694cd71 commit 5363270

File tree

7 files changed

+59
-34
lines changed

7 files changed

+59
-34
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ https://www.youtube.com/watch?v=dJrykKQGDcs
147147

148148
## Changelog ##
149149

150+
### 4.6.3 [April 30, 2020] ###
151+
152+
* FIXED
153+
* Conflict with Yoast SEO plugin
154+
* Wrong Date/Time stamp for media
155+
* Printing JavaScript code as text when Social Sync addon is active
156+
150157
### 4.6.2 [April 22, 2020] ###
151158

152159
* FIXED

app/main/RTMedia.php

+8
Original file line numberDiff line numberDiff line change
@@ -1746,6 +1746,14 @@ public static function expanded_allowed_tags() {
17461746
'id' => array(),
17471747
);
17481748

1749+
// Script, for social sync plugin.
1750+
$new_allowed['script'] = array(
1751+
'type' => array(),
1752+
'class' => array(),
1753+
'id' => array(),
1754+
'src' => array(),
1755+
);
1756+
17491757
// form input.
17501758
$new_allowed['form'] = array(
17511759
'action' => array(),

app/main/controllers/template/rtmedia-functions.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -3303,9 +3303,11 @@ function rtmedia_convert_date( $_date ) {
33033303
$length = array( 1, 60, 3600, 86400 );
33043304
// translators: %s: count of hour/minute/second.
33053305
$ago_text = esc_html__( '%s ago ', 'buddypress-media' );
3306-
$no = 0;
33073306

3308-
for ( $i = count( $length ) - 1; ( $i >= 0 ) && ( $no <= 1 ); $i-- ) {
3307+
$i = count( $length ) - 1;
3308+
$no = $diff / $length[ $i ];
3309+
while ( $i >= 0 && $no <= 1 ) {
3310+
$i--;
33093311
$no = $diff / $length[ $i ];
33103312
}
33113313

app/main/interactions/RTMediaInteraction.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct() {
5252

5353
add_filter( 'wp_title', array( $this, 'set_title' ), 99999, 2 );
5454
add_filter( 'wpseo_opengraph_title', array( $this, 'set_title' ), 9999, 1 );
55-
add_filter( 'wpseo_opengraph', array( $this, 'rtmedia_wpseo_og_image' ), 999, 1 );
55+
add_filter( 'wpseo_frontend_presenters', array( $this, 'rtmedia_wpseo_og_image' ), 999, 1 );
5656
add_filter( 'wpseo_opengraph_url', array( $this, 'rtmedia_wpseo_og_url' ), 999, 1 );
5757
add_filter( 'wpseo_opengraph_desc', array( $this, 'rtmedia_wpseo_og_desc' ), 999, 1 );
5858
}

index.php

+2-2
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.2
6+
Version: 4.6.3
77
Author: rtCamp
88
Text Domain: buddypress-media
99
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
@@ -21,7 +21,7 @@
2121
/**
2222
* The version of the plugin
2323
*/
24-
define( 'RTMEDIA_VERSION', '4.6.2' );
24+
define( 'RTMEDIA_VERSION', '4.6.3' );
2525
}
2626

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

languages/buddypress-media.po

+27-27
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.2\n"
5+
"Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.6.3\n"
66
"Report-Msgid-Bugs-To: https://rtmedia.io/support/\n"
7-
"POT-Creation-Date: 2020-04-22 11:49:33+00:00\n"
7+
"POT-Creation-Date: 2020-04-30 10:14:18+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"
@@ -146,7 +146,7 @@ msgstr ""
146146
#: app/admin/RTMediaAdmin.php:805 app/admin/RTMediaAdmin.php:1355
147147
#: app/admin/RTMediaAdmin.php:1356 app/importers/RTMediaActivityUpgrade.php:188
148148
#: app/importers/RTMediaMigration.php:92 app/main/RTMedia.php:1208
149-
#: app/main/RTMedia.php:2077
149+
#: app/main/RTMedia.php:2085
150150
msgid "rtMedia"
151151
msgstr ""
152152

@@ -3185,12 +3185,12 @@ msgid "Delete Album"
31853185
msgstr ""
31863186

31873187
#: app/main/controllers/template/rtmedia-filters.php:918
3188-
#: app/main/controllers/template/rtmedia-functions.php:4631
3188+
#: app/main/controllers/template/rtmedia-functions.php:4633
31893189
msgid "rtMedia Shortcode Uploads"
31903190
msgstr ""
31913191

31923192
#: app/main/controllers/template/rtmedia-filters.php:922
3193-
#: app/main/controllers/template/rtmedia-functions.php:4513
3193+
#: app/main/controllers/template/rtmedia-functions.php:4515
31943194
msgid "rtMedia Activities"
31953195
msgstr ""
31963196

@@ -3199,12 +3199,12 @@ msgid "rtMedia Comments"
31993199
msgstr ""
32003200

32013201
#: app/main/controllers/template/rtmedia-filters.php:930
3202-
#: app/main/controllers/template/rtmedia-functions.php:4858
3202+
#: app/main/controllers/template/rtmedia-functions.php:4860
32033203
msgid "rtMedia Media Views"
32043204
msgstr ""
32053205

32063206
#: app/main/controllers/template/rtmedia-filters.php:934
3207-
#: app/main/controllers/template/rtmedia-functions.php:4959
3207+
#: app/main/controllers/template/rtmedia-functions.php:4961
32083208
msgid "rtMedia Media Likes"
32093209
msgstr ""
32103210

@@ -3302,84 +3302,84 @@ msgstr ""
33023302
msgid "%s ago "
33033303
msgstr ""
33043304

3305-
#: app/main/controllers/template/rtmedia-functions.php:3323
3305+
#: app/main/controllers/template/rtmedia-functions.php:3325
33063306
#. translators: %s: number of seconds.
33073307
msgid "%s second"
33083308
msgid_plural "%s seconds"
33093309
msgstr[0] ""
33103310
msgstr[1] ""
33113311

3312-
#: app/main/controllers/template/rtmedia-functions.php:3328
3312+
#: app/main/controllers/template/rtmedia-functions.php:3330
33133313
#. translators: %s: number of minutes.
33143314
msgid "%s minute"
33153315
msgid_plural "%s minutes"
33163316
msgstr[0] ""
33173317
msgstr[1] ""
33183318

3319-
#: app/main/controllers/template/rtmedia-functions.php:3333
3319+
#: app/main/controllers/template/rtmedia-functions.php:3335
33203320
#. translators: %s: number of hours.
33213321
msgid "%s hour"
33223322
msgid_plural "%s hours"
33233323
msgstr[0] ""
33243324
msgstr[1] ""
33253325

3326-
#: app/main/controllers/template/rtmedia-functions.php:3960
3326+
#: app/main/controllers/template/rtmedia-functions.php:3962
33273327
#. translators: %s: date format, see http:php.net/date.
33283328
msgid "View Conversation"
33293329
msgstr ""
33303330

3331-
#: app/main/controllers/template/rtmedia-functions.php:4539
3331+
#: app/main/controllers/template/rtmedia-functions.php:4541
33323332
msgid "Activity Date"
33333333
msgstr ""
33343334

3335-
#: app/main/controllers/template/rtmedia-functions.php:4543
3335+
#: app/main/controllers/template/rtmedia-functions.php:4545
33363336
msgid "Activity Content"
33373337
msgstr ""
33383338

3339-
#: app/main/controllers/template/rtmedia-functions.php:4547
3340-
#: app/main/controllers/template/rtmedia-functions.php:4768
3339+
#: app/main/controllers/template/rtmedia-functions.php:4549
3340+
#: app/main/controllers/template/rtmedia-functions.php:4770
33413341
msgid "Attachments"
33423342
msgstr ""
33433343

3344-
#: app/main/controllers/template/rtmedia-functions.php:4640
3344+
#: app/main/controllers/template/rtmedia-functions.php:4642
33453345
msgid "Media Upload Date"
33463346
msgstr ""
33473347

3348-
#: app/main/controllers/template/rtmedia-functions.php:4644
3348+
#: app/main/controllers/template/rtmedia-functions.php:4646
33493349
msgid "Media Title"
33503350
msgstr ""
33513351

3352-
#: app/main/controllers/template/rtmedia-functions.php:4648
3353-
#: app/main/controllers/template/rtmedia-functions.php:4862
3354-
#: app/main/controllers/template/rtmedia-functions.php:4963
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
33553355
msgid "Media URL"
33563356
msgstr ""
33573357

3358-
#: app/main/controllers/template/rtmedia-functions.php:4652
3358+
#: app/main/controllers/template/rtmedia-functions.php:4654
33593359
msgid "Album Title"
33603360
msgstr ""
33613361

3362-
#: app/main/controllers/template/rtmedia-functions.php:4740
3362+
#: app/main/controllers/template/rtmedia-functions.php:4742
33633363
msgid "rtMedia Activity Comments"
33643364
msgstr ""
33653365

3366-
#: app/main/controllers/template/rtmedia-functions.php:4760
3366+
#: app/main/controllers/template/rtmedia-functions.php:4762
33673367
msgid "Comment Date"
33683368
msgstr ""
33693369

3370-
#: app/main/controllers/template/rtmedia-functions.php:4764
3370+
#: app/main/controllers/template/rtmedia-functions.php:4766
33713371
msgid "Comment Content"
33723372
msgstr ""
33733373

3374-
#: app/main/controllers/template/rtmedia-functions.php:4866
3374+
#: app/main/controllers/template/rtmedia-functions.php:4868
33753375
msgid "Number of Views"
33763376
msgstr ""
33773377

3378-
#: app/main/controllers/template/rtmedia-functions.php:4870
3378+
#: app/main/controllers/template/rtmedia-functions.php:4872
33793379
msgid "Date of First View"
33803380
msgstr ""
33813381

3382-
#: app/main/controllers/template/rtmedia-functions.php:4967
3382+
#: app/main/controllers/template/rtmedia-functions.php:4969
33833383
msgid "Date"
33843384
msgstr ""
33853385

readme.txt

+10-2
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,14 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
134134

135135
== Changelog ==
136136

137+
= 4.6.3 [April 30, 2020] =
138+
139+
* FIXED
140+
141+
* Conflict with Yoast SEO plugin
142+
* Wrong Date/Time stamp for media
143+
* Printing JavaScript code as text when Social Sync addon is active
144+
137145
= 4.6.2 [April 22, 2020] =
138146

139147
* FIXED
@@ -1685,8 +1693,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
16851693

16861694
== Upgrade Notice ==
16871695

1688-
= 4.6.2 =
1689-
rtMedia 4.6.2 with added fixes for preview not loading of docs and files in lightbox, privacy page redirection on user's profile along with warnings and PHP errors
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
16901698

16911699
== Sponsors ==
16921700

0 commit comments

Comments
 (0)