Describe the bug
WordPress's search functionality doesn't work correctly when there is a video post in the results.
To Reproduce
Steps to reproduce the behavior:
Create a post and choose Video format in WordPress classic editor
Search with classic WordPress search like yourdomain.com/?s=draft
You will see content part seems wrong
Screenshots
Additional context
The problem is template-parts/content-video.php has the_content and <?php echo esc_html( get_the_content( '', false ) ); ?> which is wrong. Need to remove esc_html part at all. Also if there is a long content something wrong with css because .video-wrapper has height :0. We need to remove this for search pages. It is better to check video posts in any case.
Describe the bug WordPress's search functionality doesn't work correctly when there is a video post in the results.
To Reproduce Steps to reproduce the behavior:
Screenshots
![Screenshot 2021-03-30 at 14 17 18](https://user-images.githubusercontent.com/10108761/112980806-04029500-9163-11eb-85f1-bd0d4f1bfee9.png)
Additional context The problem is template-parts/content-video.php has the_content and
<?php echo esc_html( get_the_content( '', false ) ); ?>
which is wrong. Need to remove esc_html part at all. Also if there is a long content something wrong with css because .video-wrapper has height :0. We need to remove this for search pages. It is better to check video posts in any case.