Skip to content

Commit 41a4403

Browse files
committed
remove declaration
1 parent 8906fa2 commit 41a4403

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

php/media/class-video.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ public function player_enabled() {
9797
public function init_player() {
9898
if ( isset( $this->config['video_player'] ) && 'cld' === $this->config['video_player'] && ! is_admin() ) {
9999
global $wp_query;
100-
$this->player_enabled = true;
101-
$posts = $wp_query->get_posts();
100+
$posts = $wp_query->get_posts();
102101
// Check content has a video to enqueue assets in correct location.
103102
foreach ( $posts as $post ) {
104103
$has_video = $this->media->filter->get_video_shortcodes( get_the_content() );

0 commit comments

Comments
 (0)