Skip to content

Commit

Permalink
Merge pull request #2064 from rtCamp/fix/issue-1312
Browse files Browse the repository at this point in the history
rtMedia Uploader Widget not showing on homepage(index.php) template
  • Loading branch information
the-hercules authored Sep 3, 2024
2 parents 56d1177 + d0b2e1a commit 6ee7ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main/controllers/shortcodes/RTMediaUploadShortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static function display_allowed() {
$media_enabled = ( is_rtmedia_upload_music_enabled() || is_rtmedia_upload_photo_enabled()
|| is_rtmedia_upload_video_enabled() || is_rtmedia_upload_document_enabled()
|| is_rtmedia_upload_other_enabled() );
$flag = ( ! ( is_home() || is_post_type_archive() || is_author() ) )
$flag = ( ! (is_post_type_archive() || is_author() ) )
&& is_user_logged_in()
&& ( $media_enabled )
// Added condition to disable upload when media is disabled in profile/group but user visits media tab.
Expand Down

0 comments on commit 6ee7ace

Please sign in to comment.