Skip to content

Commit 7ab210f

Browse files
authored
Merge pull request #1561 from rtMediaWP/develop
Version update v4.6.0
2 parents 74b9721 + 5244101 commit 7ab210f

File tree

95 files changed

+1560
-876
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+1560
-876
lines changed

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,20 @@ https://www.youtube.com/watch?v=dJrykKQGDcs
147147

148148
## Changelog ##
149149

150+
### 4.6.0 [February 17, 2020] ###
151+
152+
* Enhancement
153+
* Show long text truncated with read more option and image displayed below the truncated text on activity
154+
155+
* FIXED
156+
* Error uploading media in comments with Kleo theme
157+
* JavaScript errors
158+
* Album styling when masonry style is disabled
159+
* The template loaded on media page when nouveau template is set
160+
* Compatibility issues with PHP 7.4.1
161+
* UI related bugs
162+
* Notices and Warnings
163+
150164
### 4.5.11 [December 26, 2019] ###
151165

152166
* Enhancement
@@ -1648,8 +1662,8 @@ https://www.youtube.com/watch?v=dJrykKQGDcs
16481662
* HTML5 Audio Tag Support (with fallback)
16491663
* HTML5 Video Tag Support (with fallback)
16501664

1651-
#### 4.5.11 ####
1652-
rtMedia 4.5.11, with improved styling for albums and improved UX on BuddyPress Activity Wall.
1665+
#### 4.6.0 ####
1666+
rtMedia 4.6.0, with improved activity content preview and JavaScript and Nouveau template related fixes.
16531667

16541668
## Sponsors ##
16551669

app/assets/css/rtmedia.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@ button#rtmedia-add-media-button-post-update .dashicons {
347347
.rtm-form .rtm-field-wrap {
348348
margin-bottom: 20px;
349349
}
350+
.rtm-form .rtm-field-wrap .rtmedia-title-editor {
351+
width: 100%;
352+
}
350353

351354
#buddypress a.rtm-button-back {
352355
padding: 3px 10px;
@@ -651,7 +654,12 @@ input.imgedit-submit-btn {
651654
}
652655
.rtm-tabs a {
653656
border: 0;
654-
display: block;
657+
display: -webkit-box;
658+
display: -ms-flexbox;
659+
display: flex;
660+
-webkit-box-align: center;
661+
-ms-flex-align: center;
662+
align-items: center;
655663
padding: 5px 15px;
656664
text-decoration: none;
657665
}
@@ -1919,6 +1927,7 @@ a.rtmedia-comment-link.rtmedia-comments-link {
19191927
border: 1px solid #ddd;
19201928
padding: 5px;
19211929
border-radius: 5px;
1930+
width: auto;
19221931
}
19231932

19241933
/*------------------------------------------------------------------------------

app/assets/css/rtmedia.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/assets/css/sass/_album.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
border: 1px solid #ddd;
3636
padding: 5px;
3737
border-radius: 5px;
38+
width: auto;
3839
}
3940
}
4041
}

app/assets/css/sass/_rtm.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ button#rtmedia-add-media-button-post-update {
197197
.rtm-form {
198198
.rtm-field-wrap {
199199
margin-bottom: 20px;
200+
201+
.rtmedia-title-editor {
202+
width: 100%;
203+
}
200204
}
201205
}
202206

app/assets/css/sass/_tabs.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818

1919
a {
2020
border: 0;
21-
display: block;
21+
display: flex;
22+
align-items: center;
2223
padding: 5px 15px;
2324
text-decoration: none; //2012
2425

app/assets/js/rtMedia.backbone.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2443,7 +2443,7 @@ function renderUploadercomment_media( widget_id, parent_id_type ) {
24432443
jQuery( input_file_el ).click();
24442444
file_dialog_open = false;
24452445
}
2446-
$(this).blur();
2446+
jQuery(this).blur();
24472447
} );
24482448

24492449
var form_html = jQuery( "."+comment_media_wrapper+widget_id );
@@ -2621,15 +2621,15 @@ function renderUploadercomment_media( widget_id, parent_id_type ) {
26212621

26222622
if ( 'undefined' != typeof rtmedia_direct_upload_enabled && '1' == rtmedia_direct_upload_enabled ) {
26232623

2624-
$( '.rtmedia-comment-media-submit-' + widget_id ).focus();
2624+
jQuery( '.rtmedia-comment-media-submit-' + widget_id ).focus();
26252625
/* when direct upload is enable */
26262626
jQuery( '.'+rtmedia_comment_media_submit+widget_id ).trigger( 'click' );
26272627
}
26282628

26292629
/**
26302630
* Uploader improper enter behavior issue(124) fixed
26312631
*/
2632-
$('.rtmedia-comment-media-submit-'+widget_id).focus();
2632+
jQuery('.rtmedia-comment-media-submit-'+widget_id).focus();
26332633
/**
26342634
* End of issue 124
26352635
*/
@@ -2739,7 +2739,7 @@ function renderUploadercomment_media( widget_id, parent_id_type ) {
27392739
'class': 'plupload_file_progress ui-widget-header',
27402740
});
27412741
progressBar.css( 'width', file.percent + '%' );
2742-
$( '#' + file.id + ' .plupload_file_status' ).html( progressBar );
2742+
jQuery( '#' + file.id + ' .plupload_file_status' ).html( progressBar );
27432743
// filter to customize existing progress bar can be used to display
27442744
// '%' of upload completed.
27452745
rtMediaHook.call( 'rtm_custom_progress_bar_content', [ file ] );

app/assets/js/rtm-upload-terms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ if ( 'object' === typeof rtMediaHook ) {
7777
});
7878

7979
rtMediaHook.register( 'rtmedia_js_after_activity_added', function() {
80-
var rtmedia_terms_conditions = $( '#rtmedia_upload_terms_conditions' );
80+
var rtmedia_terms_conditions = jQuery( '#rtmedia_upload_terms_conditions' );
8181
if ( rtmedia_terms_conditions && rtmedia_terms_conditions.is(':checked') ) {
8282
rtmedia_terms_conditions.prop( 'checked', false );
8383
}

app/assets/js/rtm-upload-terms.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/main/RTMedia.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ public function init_site_options() {
684684
break;
685685
case 'video':
686686
case 'music':
687-
$old = ( 'video' === $type ) ? 'video' : ( 'music' === $type ) ? 'audio' : '';
687+
$old = ( 'video' === $type ) ? 'video' : ( ( 'music' === $type ) ? 'audio' : '' );
688688
switch ( $size ) {
689689
case 'activityPlayer':
690690
if ( isset( $bp_media_options['sizes'][ $old ]['medium'][ $dimension ] ) && ! empty( $bp_media_options['sizes'][ $old ]['medium'][ $dimension ] ) ) {
@@ -1337,21 +1337,6 @@ function enqueue_scripts_styles() {
13371337
if ( empty( $is_buddypress_activate ) ) {
13381338
wp_localize_script( 'rtmedia-main', 'ajaxurl', admin_url( 'admin-ajax.php', is_ssl() ? 'admin' : 'http' ) );
13391339
}
1340-
1341-
// Only Applay if BP Template Nouveau is activate.
1342-
if ( ! empty( $bp_template ) && 'nouveau' === $bp_template && ( 'group' === $rtmedia_interaction->context->type || 'profile' === $rtmedia_interaction->context->type ) ) {
1343-
$rtmedia_router = new RTMediaRouter();
1344-
if ( ! empty( $rtmedia_router->query_vars ) ) {
1345-
$wp_current_stylesheet = get_stylesheet();
1346-
1347-
// If file is already exists in buddypress then enqueue it.
1348-
if ( file_exists( sprintf( '%sbp-templates/bp-legacy/css/%s.min.css', BP_PLUGIN_DIR, $wp_current_stylesheet ) ) ) {
1349-
wp_enqueue_style( 'bp-nouveau-stylesheet-theme', BP_PLUGIN_URL . 'bp-templates/bp-legacy/css/' . $wp_current_stylesheet . '.min.css' );
1350-
}
1351-
1352-
wp_enqueue_style( 'bp-nouveau-stylesheet-buddypress', BP_PLUGIN_URL . 'bp-templates/bp-legacy/css/buddypress.min.css', '' );
1353-
}
1354-
}
13551340
}
13561341

13571342
function set_bp_bar() {

0 commit comments

Comments
 (0)