Не отображаются медиа
Quote from fgfff on May 21, 2019, 9:57 pmПосле обноаления Версия 1.14.8 перестали отображаться медиа видео аудио В редакторе отображаются а в сообщении нет
После обноаления Версия 1.14.8 перестали отображаться медиа видео аудио В редакторе отображаются а в сообщении нет
Uploaded files:Quote from Asgaros on May 21, 2019, 10:02 pmHello @fgfff
- From which version have you updated?
- Can you provide a link to your post or the video which you try to embed so I can have a look?
Hello @fgfff
- From which version have you updated?
- Can you provide a link to your post or the video which you try to embed so I can have a look?
Quote from Asgaros on May 21, 2019, 11:56 pmHello @fgfff
What kind of video have you embedded/which service are you using? The best way to embed a video is to just paste its URL (for example YouTube-URLs) into the editor so that WordPress embeds it automatically.
Embed videos directly via scripts or HTML is not possible anymore since one of the latest updates because it allowed users to include malicious scripts as well which could lead to security risks.
Hello @fgfff
What kind of video have you embedded/which service are you using? The best way to embed a video is to just paste its URL (for example YouTube-URLs) into the editor so that WordPress embeds it automatically.
Embed videos directly via scripts or HTML is not possible anymore since one of the latest updates because it allowed users to include malicious scripts as well which could lead to security risks.
Quote from fgfff on May 22, 2019, 12:35 amВставить видео напрямую через скрипты или HTML больше невозможно. Вы меня просто убили У меня практически в каждом сообщении вставленно видео или аудио object или frame Редактировать сообщения это просто невозможно Может есть какой плагин или какой то другой способ вернуться на старую версию Asgaros Форум
Вставить видео напрямую через скрипты или HTML больше невозможно. Вы меня просто убили У меня практически в каждом сообщении вставленно видео или аудио object или frame Редактировать сообщения это просто невозможно Может есть какой плагин или какой то другой способ вернуться на старую версию Asgaros Форум
Quote from Asgaros on May 22, 2019, 8:05 pmHello again @fgfff
Actually WordPress itself filters those content (check out the documentation of the wp_kses() function).
If you want remove that kind of filtering, you have to replace the following line of code from the asgaros-forum/includes/views/post-element.php file:
$post_content = wp_kses($post->text, 'post');Replace with:
$post_content = $post->text;However, please keep in mind that those changes allows users to add malicious scripts into your posts. So those changes are on your own risk.
Hello again @fgfff
Actually WordPress itself filters those content (check out the documentation of the wp_kses() function).
If you want remove that kind of filtering, you have to replace the following line of code from the asgaros-forum/includes/views/post-element.php file:
$post_content = wp_kses($post->text, 'post');
Replace with:
$post_content = $post->text;
However, please keep in mind that those changes allows users to add malicious scripts into your posts. So those changes are on your own risk.