Quantcast
Channel: EasyEngine Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 12639

Buddypress media moderation bug

$
0
0

Hi, @pranalipatel

I used a patch to solve for the moment this bug.

In my function.php

add_filter("rtmedia_before_update_media", "ra_before_update_media");
function ra_before_update_media($media_id)
{
    global $rtmedia_query;
    if( !empty( array_filter($rtmedia_query->media) )) {
        if($rtmedia_query->media[0]->privacy == 80 && isset($_POST['privacy']) ){
            unset($_POST['privacy']);
        }
    }
}.

And in the media-single-edit.php template:

<?php if( $rtmedia_media->privacy != 80 ){ echo rtmedia_edit_media_privacy_ui(); }

With this,I remove the privacy select from the edit page.


Viewing all articles
Browse latest Browse all 12639

Trending Articles