We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8906fa2 commit 41a4403Copy full SHA for 41a4403
php/media/class-video.php
@@ -97,8 +97,7 @@ public function player_enabled() {
97
public function init_player() {
98
if ( isset( $this->config['video_player'] ) && 'cld' === $this->config['video_player'] && ! is_admin() ) {
99
global $wp_query;
100
- $this->player_enabled = true;
101
- $posts = $wp_query->get_posts();
+ $posts = $wp_query->get_posts();
102
// Check content has a video to enqueue assets in correct location.
103
foreach ( $posts as $post ) {
104
$has_video = $this->media->filter->get_video_shortcodes( get_the_content() );
0 commit comments