Version Description
- Fix permalink issue in album gallery
- Bug Fixes
Download this release
Release Info
Developer | faishal |
Plugin | rtMedia for WordPress, BuddyPress and bbPress |
Version | 3.2.9 |
Comparing to | |
See all releases |
Code changes from version 3.2.8 to 3.2.9
- app/importers/RTMediaMigration.php +2 -2
- app/main/RTMedia.php +10 -0
- app/main/controllers/activity/RTMediaActivity.php +5 -1
- app/main/controllers/media/RTMediaComment.php +12 -9
- app/main/controllers/media/RTMediaViewCount.php +7 -1
- app/main/controllers/template/rt-template-functions.php +7 -0
- app/main/controllers/upload/RTMediaUploadView.php +4 -4
- app/main/controllers/upload/processors/RTMediaUploadFile.php +9 -5
- app/main/interactions/RTMediaInteraction.php +7 -1
- app/main/routers/RTMediaRouter.php +1 -0
- app/main/routers/query/RTMediaQuery.php +8 -1
- index.php +1 -1
- readme.txt +7 -3
app/importers/RTMediaMigration.php
CHANGED
@@ -11,7 +11,7 @@ class RTMediaMigration {
|
|
11 |
|
12 |
function __construct () {
|
13 |
global $wpdb;
|
14 |
-
$this->bmp_table = $wpdb->
|
15 |
|
16 |
add_action ( 'admin_menu', array( $this, 'menu' ) );
|
17 |
add_action ( 'wp_ajax_bp_media_rt_db_migration', array( $this, "migrate_to_new_db" ) );
|
@@ -108,7 +108,7 @@ class RTMediaMigration {
|
|
108 |
where
|
109 |
(NOT p.ID IS NULL)
|
110 |
and a.meta_key = 'bp_media_child_activity') p
|
111 |
-
on
|
112 |
where
|
113 |
type = 'activity_comment'
|
114 |
and is_spam <>1 and
|
11 |
|
12 |
function __construct () {
|
13 |
global $wpdb;
|
14 |
+
$this->bmp_table = $wpdb->base_prefix . "rt_rtm_media";
|
15 |
|
16 |
add_action ( 'admin_menu', array( $this, 'menu' ) );
|
17 |
add_action ( 'wp_ajax_bp_media_rt_db_migration', array( $this, "migrate_to_new_db" ) );
|
108 |
where
|
109 |
(NOT p.ID IS NULL)
|
110 |
and a.meta_key = 'bp_media_child_activity') p
|
111 |
+
on {$bp_prefix}bp_activity.item_id = p.meta_value
|
112 |
where
|
113 |
type = 'activity_comment'
|
114 |
and is_spam <>1 and
|
app/main/RTMedia.php
CHANGED
@@ -91,6 +91,7 @@ class RTMedia
|
|
91 |
add_action('wp_enqueue_scripts', array('RTMediaGalleryShortcode', 'register_scripts'));
|
92 |
add_action('wp_enqueue_scripts', array(&$this, 'enqueue_scripts_styles'), 999);
|
93 |
add_action('rt_db_upgrade', array($this, 'fix_parent_id'));
|
|
|
94 |
include(RTMEDIA_PATH . 'app/main/controllers/template/rt-template-functions.php');
|
95 |
add_filter('intermediate_image_sizes_advanced', array($this, 'filter_image_sizes_details'));
|
96 |
add_filter('intermediate_image_sizes', array($this, 'filter_image_sizes'));
|
@@ -141,6 +142,11 @@ class RTMedia
|
|
141 |
}
|
142 |
}
|
143 |
|
|
|
|
|
|
|
|
|
|
|
144 |
function set_site_options() {
|
145 |
|
146 |
$rtmedia_options = rtmedia_get_site_option('rtmedia-options');
|
@@ -843,6 +849,10 @@ function parentlink_global_album($id) {
|
|
843 |
} else {
|
844 |
$parent_link = get_rtmedia_user_link($disp_user);
|
845 |
}
|
|
|
|
|
|
|
|
|
846 |
}
|
847 |
}
|
848 |
return $parent_link;
|
91 |
add_action('wp_enqueue_scripts', array('RTMediaGalleryShortcode', 'register_scripts'));
|
92 |
add_action('wp_enqueue_scripts', array(&$this, 'enqueue_scripts_styles'), 999);
|
93 |
add_action('rt_db_upgrade', array($this, 'fix_parent_id'));
|
94 |
+
add_action('rt_db_upgrade', array($this, 'fix_privacy'));
|
95 |
include(RTMEDIA_PATH . 'app/main/controllers/template/rt-template-functions.php');
|
96 |
add_filter('intermediate_image_sizes_advanced', array($this, 'filter_image_sizes_details'));
|
97 |
add_filter('intermediate_image_sizes', array($this, 'filter_image_sizes'));
|
142 |
}
|
143 |
}
|
144 |
|
145 |
+
function fix_privacy() {
|
146 |
+
$model = new RTMediaModel();
|
147 |
+
$update_sql = "UPDATE $model->table_name SET privacy = '80' where privacy = '-1' ";
|
148 |
+
}
|
149 |
+
|
150 |
function set_site_options() {
|
151 |
|
152 |
$rtmedia_options = rtmedia_get_site_option('rtmedia-options');
|
849 |
} else {
|
850 |
$parent_link = get_rtmedia_user_link($disp_user);
|
851 |
}
|
852 |
+
global $rtmedia_query;
|
853 |
+
if( isset( $rtmedia_query->is_gallery_shortcode ) && $rtmedia_query->is_gallery_shortcode == true) {
|
854 |
+
$parent_link = get_rtmedia_user_link( get_current_user_id() );
|
855 |
+
}
|
856 |
}
|
857 |
}
|
858 |
return $parent_link;
|
app/main/controllers/activity/RTMediaActivity.php
CHANGED
@@ -44,7 +44,11 @@ class RTMediaActivity {
|
|
44 |
}
|
45 |
|
46 |
global $rtmedia;
|
47 |
-
|
|
|
|
|
|
|
|
|
48 |
|
49 |
$mediaObj = new RTMediaModel();
|
50 |
$media_details = $mediaObj->get ( array( 'id' => $this->media ) );
|
44 |
}
|
45 |
|
46 |
global $rtmedia;
|
47 |
+
if( isset( $rtmedia->options['buddypress_limitOnActivity'] ) ) {
|
48 |
+
$limitActivityFeed = $rtmedia->options['buddypress_limitOnActivity'];
|
49 |
+
} else {
|
50 |
+
$limitActivityFeed = 0;
|
51 |
+
}
|
52 |
|
53 |
$mediaObj = new RTMediaModel();
|
54 |
$media_details = $mediaObj->get ( array( 'id' => $this->media ) );
|
app/main/controllers/media/RTMediaComment.php
CHANGED
@@ -59,15 +59,18 @@ class RTMediaComment {
|
|
59 |
|
60 |
function add($attr) {
|
61 |
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
|
|
|
|
|
|
68 |
global $rtmedia_points_media_id;
|
69 |
-
$rtmedia_points_media_id = rtmedia_id($
|
70 |
-
do_action('rtmedia_after_add_comment', $
|
71 |
|
72 |
return $id;
|
73 |
}
|
@@ -90,4 +93,4 @@ class RTMediaComment {
|
|
90 |
|
91 |
return $comment_deleted;
|
92 |
}
|
93 |
-
}
|
59 |
|
60 |
function add($attr) {
|
61 |
|
62 |
+
do_action('rtmedia_before_add_comment', $attr);
|
63 |
+
$defaults = array(
|
64 |
+
'user_id' => $this->get_current_id(),
|
65 |
+
'comment_author' => $this->get_current_author(),
|
66 |
+
'comment_date' => current_time('mysql')
|
67 |
+
);
|
68 |
+
$params = wp_parse_args( $attr, $defaults );
|
69 |
+
|
70 |
+
$id = $this->rtmedia_comment_model->insert($params);
|
71 |
global $rtmedia_points_media_id;
|
72 |
+
$rtmedia_points_media_id = rtmedia_id($params['comment_post_ID']);
|
73 |
+
do_action('rtmedia_after_add_comment', $params);
|
74 |
|
75 |
return $id;
|
76 |
}
|
93 |
|
94 |
return $comment_deleted;
|
95 |
}
|
96 |
+
}
|
app/main/controllers/media/RTMediaViewCount.php
CHANGED
@@ -17,12 +17,18 @@ class RTMediaViewCount extends RTMediaUserInteraction {
|
|
17 |
'label' => 'view',
|
18 |
'privacy' => 0
|
19 |
);
|
20 |
-
|
21 |
parent::__construct ($args);
|
22 |
remove_filter('rtmedia_action_buttons_before_delete', array($this,'button_filter'));
|
23 |
add_filter ( 'rtmedia_action_buttons_after_delete', array( $this, 'button_filter' ), 99 );
|
24 |
}
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
function render () {
|
27 |
if(isset($_SESSION['rtmedia_media_view']) && $_SESSION['rtmedia_media_view'] != "" && sizeof($_SESSION['rtmedia_media_view'] > 0)) {
|
28 |
$key = array_search ($this->media->id, $_SESSION['rtmedia_media_view']);
|
17 |
'label' => 'view',
|
18 |
'privacy' => 0
|
19 |
);
|
20 |
+
add_action( 'init', array( $this,'register_session' ) );
|
21 |
parent::__construct ($args);
|
22 |
remove_filter('rtmedia_action_buttons_before_delete', array($this,'button_filter'));
|
23 |
add_filter ( 'rtmedia_action_buttons_after_delete', array( $this, 'button_filter' ), 99 );
|
24 |
}
|
25 |
|
26 |
+
function register_session(){
|
27 |
+
if( !session_id() ) {
|
28 |
+
session_start();
|
29 |
+
}
|
30 |
+
}
|
31 |
+
|
32 |
function render () {
|
33 |
if(isset($_SESSION['rtmedia_media_view']) && $_SESSION['rtmedia_media_view'] != "" && sizeof($_SESSION['rtmedia_media_view'] > 0)) {
|
34 |
$key = array_search ($this->media->id, $_SESSION['rtmedia_media_view']);
|
app/main/controllers/template/rt-template-functions.php
CHANGED
@@ -1435,6 +1435,13 @@ function rtmedia_admin_premium_page($page) {
|
|
1435 |
<div class="row">
|
1436 |
<h1 class="premium-title">Reasons to buy rtMedia-PRO</h1>
|
1437 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1438 |
<div class="row">
|
1439 |
<div class="columns large-1 rtm-premium-icon-pro"><i class="icon-comments icon-3x"></i></div>
|
1440 |
<div class="columns large-10">
|
1435 |
<div class="row">
|
1436 |
<h1 class="premium-title">Reasons to buy rtMedia-PRO</h1>
|
1437 |
</div>
|
1438 |
+
<div class="row">
|
1439 |
+
<div class="columns large-1 rtm-premium-icon-pro"><i class="icon-rss icon-3x"></i></div>
|
1440 |
+
<div class="columns large-10">
|
1441 |
+
<h2>RSS feed and Podcast Support</h2>
|
1442 |
+
<p>You can view media with RSS reader and enjoy media through Podcast.</p>
|
1443 |
+
</div>
|
1444 |
+
</div>
|
1445 |
<div class="row">
|
1446 |
<div class="columns large-1 rtm-premium-icon-pro"><i class="icon-comments icon-3x"></i></div>
|
1447 |
<div class="columns large-10">
|
app/main/controllers/upload/RTMediaUploadView.php
CHANGED
@@ -42,14 +42,14 @@ class RTMediaUploadView {
|
|
42 |
|
43 |
global $rtmedia_query;
|
44 |
$album = '';
|
45 |
-
if ( $rtmedia_query && is_rtmedia_album () ) {
|
46 |
$album = '<input class="rtmedia-current-album" type="hidden" name="rtmedia-current-album" value="' . $rtmedia_query->media_query[ 'album_id' ] . '" />';
|
47 |
} elseif ( is_rtmedia_album_enable () && $rtmedia_query && is_rtmedia_gallery () ) {
|
48 |
|
49 |
-
if ( $rtmedia_query->query[ 'context' ] == 'profile' ) {
|
50 |
$album = '<label>' . __('Album','rtmedia') . ': </label><select name="album" class="rtmedia-user-album-list">' . rtmedia_user_album_list () . '</select>';
|
51 |
}
|
52 |
-
if ( $rtmedia_query->query[ 'context' ] == 'group' ) {
|
53 |
$album = '<label>' . __('Album','rtmedia') . '</label><select name="album" class="rtmedia-user-album-list">' . rtmedia_group_album_list () . '</select>';
|
54 |
}
|
55 |
}
|
@@ -62,7 +62,7 @@ class RTMediaUploadView {
|
|
62 |
'file_upload' => array(
|
63 |
'default' => array( 'title' => __ ( 'File Upload', 'rtmedia' ), 'content' => '<div id="rtmedia-upload-container" ><div id="drag-drop-area" class="drag-drop">' . $album . $up_privacy . '<input id="rtMedia-upload-button" value="' . __ ( "Select", "rtmedia" ) . '" type="button" class="rtmedia-upload-input rtmedia-file" /></div><table id="rtMedia-queue-list"><tbody></tbody></table></div>' ),
|
64 |
//'activity' => array( 'title' => __ ( 'File Upload', 'rtmedia' ), 'content' => '<div class="rtmedia-container"><div id="rtmedia-action-update"><input type="button" class="rtmedia-add-media-button" id="rtmedia-add-media-button-post-update" value="' . __ ( "Attach Files", "rtmedia" ) . '" /></div><div id="div-attache-rtmedia"><div id="rtmedia-whts-new-upload-container" ><div id="rtmedia-whts-new-drag-drop-area" class="drag-drop"><input id="rtmedia-whts-new-upload-button" value="' . __ ( "Select", "rtmedia" ) . '" type="button" class="rtmedia-upload-input rtmedia-file" /></div><div id="rtMedia-update-queue-list"></div></div></div></div>' )
|
65 |
-
'activity' => array( 'title' => __ ( 'File Upload', 'rtmedia' ), 'content' => '<div class="rtmedia-container"><div id="rtmedia-action-update"><button class="rtmedia-add-media-button" id="rtmedia-add-media-button-post-update"><i class="icon-plus-sign"></i>' . __ ( " Attach Files ", "rtmedia " ) . '</button>' . $up_privacy . '</div><div id="rtmedia-whts-new-upload-container"><div id="rtm-upload-start-notice"><span>' . __('Upload will start only after you enter content and click Post Update.') . '</span></div><table id="rtMedia-queue-list"><tbody></tbody></table></div></div>')
|
66 |
),
|
67 |
// 'file_upload' => array( 'title' => __('File Upload','rtmedia'), 'content' => '<div id="rtmedia-uploader"><p>Your browser does not have HTML5 support.</p></div>'),
|
68 |
'link_input' => array( 'title' => __ ( 'Insert from URL', 'rtmedia' ), 'content' => '<input type="url" name="bp-media-url" class="rtmedia-upload-input rtmedia-url" />' ),
|
42 |
|
43 |
global $rtmedia_query;
|
44 |
$album = '';
|
45 |
+
if ( $rtmedia_query && is_rtmedia_album () && isset( $rtmedia_query->media_query[ 'album_id' ] ) ) {
|
46 |
$album = '<input class="rtmedia-current-album" type="hidden" name="rtmedia-current-album" value="' . $rtmedia_query->media_query[ 'album_id' ] . '" />';
|
47 |
} elseif ( is_rtmedia_album_enable () && $rtmedia_query && is_rtmedia_gallery () ) {
|
48 |
|
49 |
+
if ( isset( $rtmedia_query->query[ 'context' ] ) && $rtmedia_query->query[ 'context' ] == 'profile' ) {
|
50 |
$album = '<label>' . __('Album','rtmedia') . ': </label><select name="album" class="rtmedia-user-album-list">' . rtmedia_user_album_list () . '</select>';
|
51 |
}
|
52 |
+
if (isset( $rtmedia_query->query[ 'context' ] ) && $rtmedia_query->query[ 'context' ] == 'group' ) {
|
53 |
$album = '<label>' . __('Album','rtmedia') . '</label><select name="album" class="rtmedia-user-album-list">' . rtmedia_group_album_list () . '</select>';
|
54 |
}
|
55 |
}
|
62 |
'file_upload' => array(
|
63 |
'default' => array( 'title' => __ ( 'File Upload', 'rtmedia' ), 'content' => '<div id="rtmedia-upload-container" ><div id="drag-drop-area" class="drag-drop">' . $album . $up_privacy . '<input id="rtMedia-upload-button" value="' . __ ( "Select", "rtmedia" ) . '" type="button" class="rtmedia-upload-input rtmedia-file" /></div><table id="rtMedia-queue-list"><tbody></tbody></table></div>' ),
|
64 |
//'activity' => array( 'title' => __ ( 'File Upload', 'rtmedia' ), 'content' => '<div class="rtmedia-container"><div id="rtmedia-action-update"><input type="button" class="rtmedia-add-media-button" id="rtmedia-add-media-button-post-update" value="' . __ ( "Attach Files", "rtmedia" ) . '" /></div><div id="div-attache-rtmedia"><div id="rtmedia-whts-new-upload-container" ><div id="rtmedia-whts-new-drag-drop-area" class="drag-drop"><input id="rtmedia-whts-new-upload-button" value="' . __ ( "Select", "rtmedia" ) . '" type="button" class="rtmedia-upload-input rtmedia-file" /></div><div id="rtMedia-update-queue-list"></div></div></div></div>' )
|
65 |
+
'activity' => array( 'title' => __ ( 'File Upload', 'rtmedia' ), 'content' => '<div class="rtmedia-container"><div id="rtmedia-action-update"><button class="rtmedia-add-media-button" id="rtmedia-add-media-button-post-update"><i class="icon-plus-sign"></i>' . __ ( " Attach Files ", "rtmedia " ) . '</button>' . $up_privacy . '</div><div id="rtmedia-whts-new-upload-container"><div id="rtm-upload-start-notice"><span>' . __('Upload will start only after you enter content and click Post Update.', "rtmedia" ) . '</span></div><table id="rtMedia-queue-list"><tbody></tbody></table></div></div>')
|
66 |
),
|
67 |
// 'file_upload' => array( 'title' => __('File Upload','rtmedia'), 'content' => '<div id="rtmedia-uploader"><p>Your browser does not have HTML5 support.</p></div>'),
|
68 |
'link_input' => array( 'title' => __ ( 'Insert from URL', 'rtmedia' ), 'content' => '<input type="url" name="bp-media-url" class="rtmedia-upload-input rtmedia-url" />' ),
|
app/main/controllers/upload/processors/RTMediaUploadFile.php
CHANGED
@@ -38,8 +38,11 @@ class RTMediaUploadFile {
|
|
38 |
include_once(ABSPATH . 'wp-admin/includes/image.php');
|
39 |
|
40 |
$upload_type = $this->fake ? 'wp_handle_sideload' : 'wp_handle_upload';
|
41 |
-
|
42 |
-
|
|
|
|
|
|
|
43 |
if(isset($this->files) && sizeof($this->files) > 0) {
|
44 |
foreach ( $this->files as $key => $file ) {
|
45 |
|
@@ -87,15 +90,16 @@ class RTMediaUploadFile {
|
|
87 |
}
|
88 |
|
89 |
|
90 |
-
|
|
|
91 |
str_replace ( $upload_dir[ 'subdir' ], '', $upload_dir[ 'path' ] ) )
|
92 |
. 'rtMedia/' . $rtmedia_upload_prefix . $id .
|
93 |
$upload_dir[ 'subdir' ];
|
94 |
-
|
95 |
str_replace ( $upload_dir[ 'subdir' ], '', $upload_dir[ 'url' ] ) )
|
96 |
. 'rtMedia/' . $rtmedia_upload_prefix . $id
|
97 |
. $upload_dir[ 'subdir' ];
|
98 |
-
|
99 |
$upload_dir = apply_filters("rtmedia_filter_upload_dir",$upload_dir);
|
100 |
|
101 |
return $upload_dir;
|
38 |
include_once(ABSPATH . 'wp-admin/includes/image.php');
|
39 |
|
40 |
$upload_type = $this->fake ? 'wp_handle_sideload' : 'wp_handle_upload';
|
41 |
+
global $rt_set_filter_uplaod_dir;
|
42 |
+
if(!isset($rt_set_filter_uplaod_dir)){
|
43 |
+
add_filter ( 'upload_dir', array( $this, 'upload_dir' ) );
|
44 |
+
$rt_set_filter_uplaod_dir = true;
|
45 |
+
}
|
46 |
if(isset($this->files) && sizeof($this->files) > 0) {
|
47 |
foreach ( $this->files as $key => $file ) {
|
48 |
|
90 |
}
|
91 |
|
92 |
|
93 |
+
if( strpos ( $upload_dir[ 'path' ] , 'rtMedia/' . $rtmedia_upload_prefix ) === false ){
|
94 |
+
$upload_dir[ 'path' ] = trailingslashit (
|
95 |
str_replace ( $upload_dir[ 'subdir' ], '', $upload_dir[ 'path' ] ) )
|
96 |
. 'rtMedia/' . $rtmedia_upload_prefix . $id .
|
97 |
$upload_dir[ 'subdir' ];
|
98 |
+
$upload_dir[ 'url' ] = trailingslashit (
|
99 |
str_replace ( $upload_dir[ 'subdir' ], '', $upload_dir[ 'url' ] ) )
|
100 |
. 'rtMedia/' . $rtmedia_upload_prefix . $id
|
101 |
. $upload_dir[ 'subdir' ];
|
102 |
+
}
|
103 |
$upload_dir = apply_filters("rtmedia_filter_upload_dir",$upload_dir);
|
104 |
|
105 |
return $upload_dir;
|
app/main/interactions/RTMediaInteraction.php
CHANGED
@@ -191,7 +191,13 @@ class RTMediaInteraction {
|
|
191 |
if ( function_exists ( "bp_get_displayed_user_fullname" ) && bp_displayed_user_id () != 0 ) {
|
192 |
$title .= $sep . bp_get_displayed_user_fullname ();
|
193 |
$sep = $oldSep;
|
194 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
|
196 |
$title .= $sep . RTMEDIA_MEDIA_LABEL;
|
197 |
$sep = $oldSep;
|
191 |
if ( function_exists ( "bp_get_displayed_user_fullname" ) && bp_displayed_user_id () != 0 ) {
|
192 |
$title .= $sep . bp_get_displayed_user_fullname ();
|
193 |
$sep = $oldSep;
|
194 |
+
} else {
|
195 |
+
$user_info = get_userdata( get_current_user_id() );
|
196 |
+
if( isset( $user_info->data->display_name ) ) {
|
197 |
+
$title .= $sep . $user_info->data->display_name;
|
198 |
+
$sep = $oldSep;
|
199 |
+
}
|
200 |
+
}
|
201 |
|
202 |
$title .= $sep . RTMEDIA_MEDIA_LABEL;
|
203 |
$sep = $oldSep;
|
app/main/routers/RTMediaRouter.php
CHANGED
@@ -78,6 +78,7 @@ class RTMediaRouter {
|
|
78 |
$return = false;
|
79 |
if ( isset ( $wp_query->query_vars[ 'pagename' ] ) && $wp_query->query_vars[ 'pagename' ] == 'group-avatar' )
|
80 |
$return = false;
|
|
|
81 |
}
|
82 |
|
83 |
if ( $return ) {
|
78 |
$return = false;
|
79 |
if ( isset ( $wp_query->query_vars[ 'pagename' ] ) && $wp_query->query_vars[ 'pagename' ] == 'group-avatar' )
|
80 |
$return = false;
|
81 |
+
$wp_query->is_feed = false;
|
82 |
}
|
83 |
|
84 |
if ( $return ) {
|
app/main/routers/query/RTMediaQuery.php
CHANGED
@@ -192,8 +192,12 @@ class RTMediaQuery {
|
|
192 |
}
|
193 |
|
194 |
function set_action_query () {
|
|
|
|
|
|
|
|
|
|
|
195 |
|
196 |
-
$raw_query = $this->interaction->query_vars;
|
197 |
|
198 |
if ( isset ( $raw_query ) && is_array ( $raw_query ) && count ( $raw_query ) > 1 ) {
|
199 |
if ( empty ( $raw_query[ 0 ] ) && ! empty ( $raw_query[ 1 ] ) ) {
|
@@ -279,6 +283,8 @@ class RTMediaQuery {
|
|
279 |
}
|
280 |
}
|
281 |
|
|
|
|
|
282 |
|
283 |
|
284 |
if ( isset ( $raw_query[ 1 ] ) ) {
|
@@ -391,6 +397,7 @@ class RTMediaQuery {
|
|
391 |
* setting parameters in action query object for pagination
|
392 |
*/
|
393 |
$per_page_media = intval ( $rtmedia->options[ 'general_perPageMedia' ] );
|
|
|
394 |
|
395 |
|
396 |
$this->action_query = ( object ) array(
|
192 |
}
|
193 |
|
194 |
function set_action_query () {
|
195 |
+
if(isset( $this->interaction ) && isset( $this->interaction->query_vars ) ) {
|
196 |
+
$raw_query = $this->interaction->query_vars;
|
197 |
+
} else {
|
198 |
+
$raw_query = array();
|
199 |
+
}
|
200 |
|
|
|
201 |
|
202 |
if ( isset ( $raw_query ) && is_array ( $raw_query ) && count ( $raw_query ) > 1 ) {
|
203 |
if ( empty ( $raw_query[ 0 ] ) && ! empty ( $raw_query[ 1 ] ) ) {
|
283 |
}
|
284 |
}
|
285 |
|
286 |
+
$modifier_type = apply_filters( "rtmedia_action_query_modifier_type", $modifier_type, $raw_query );
|
287 |
+
$modifier_value = apply_filters( "rtmedia_action_query_modifier_value", $modifier_value, $raw_query );
|
288 |
|
289 |
|
290 |
if ( isset ( $raw_query[ 1 ] ) ) {
|
397 |
* setting parameters in action query object for pagination
|
398 |
*/
|
399 |
$per_page_media = intval ( $rtmedia->options[ 'general_perPageMedia' ] );
|
400 |
+
$per_page_media = apply_filters( "rtmedia_per_page_media", $per_page_media );
|
401 |
|
402 |
|
403 |
$this->action_query = ( object ) array(
|
index.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
|
5 |
Plugin URI: http://rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
6 |
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!
|
7 |
-
Version: 3.2.
|
8 |
Author: rtCamp
|
9 |
Text Domain: rtmedia
|
10 |
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
4 |
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
|
5 |
Plugin URI: http://rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
6 |
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!
|
7 |
+
Version: 3.2.9
|
8 |
Author: rtCamp
|
9 |
Text Domain: rtmedia
|
10 |
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ License: GPLv2 or later
|
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: WordPress 3.6
|
8 |
Tested up to: WordPress 3.7 + BuddyPress 1.8.1
|
9 |
-
Stable tag: 3.2.
|
10 |
|
11 |
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
|
12 |
|
@@ -131,6 +131,10 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
|
|
131 |
|
132 |
Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit rtMedia's Features page") to get some details about future releases.
|
133 |
|
|
|
|
|
|
|
|
|
134 |
= 3.2.8 =
|
135 |
* Fix WordPress MultiSite issue.
|
136 |
* Shortcode invalid argument issue fix.
|
@@ -606,8 +610,8 @@ Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_sou
|
|
606 |
|
607 |
== Upgrade Notice ==
|
608 |
|
609 |
-
= 3.2.
|
610 |
-
Requires BuddyPress 1.7 or higher, if using BuddyPress. Fix
|
611 |
|
612 |
== Sponsors ==
|
613 |
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: WordPress 3.6
|
8 |
Tested up to: WordPress 3.7 + BuddyPress 1.8.1
|
9 |
+
Stable tag: 3.2.9
|
10 |
|
11 |
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
|
12 |
|
131 |
|
132 |
Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit rtMedia's Features page") to get some details about future releases.
|
133 |
|
134 |
+
= 3.2.9 =
|
135 |
+
* Fix permalink issue in album gallery
|
136 |
+
* Bug Fixes
|
137 |
+
|
138 |
= 3.2.8 =
|
139 |
* Fix WordPress MultiSite issue.
|
140 |
* Shortcode invalid argument issue fix.
|
610 |
|
611 |
== Upgrade Notice ==
|
612 |
|
613 |
+
= 3.2.9 =
|
614 |
+
Requires BuddyPress 1.7 or higher, if using BuddyPress. Fix permalink issue in album gallery and few Bug fixes.
|
615 |
|
616 |
== Sponsors ==
|
617 |
|