diff --git a/admin/rt-transcoder-functions.php b/admin/rt-transcoder-functions.php index a14261b..59c4259 100755 --- a/admin/rt-transcoder-functions.php +++ b/admin/rt-transcoder-functions.php @@ -52,6 +52,7 @@ function rt_media_shortcode( $attrs, $content = '' ) { } $mime_type = explode( '/', $type ); + $media_url = ''; if ( 'video' === $mime_type[0] ) { @@ -81,6 +82,10 @@ function rt_media_shortcode( $attrs, $content = '' ) { $content = do_shortcode( "[audio {$audio_shortcode_attributes}]" ); + } elseif ( 'image' === $mime_type[0] ) { + + $content = '
' . esc_html__( 'Image attachments are not handled by Transcoder plugin.', 'transcoder' ) . '
'; + } if ( is_file_being_transcoded( $attachment_id ) ) {