Making WordPress.org

Changeset 10466


Ignore:
Timestamp:
11/25/2020 05:04:33 AM (4 years ago)
Author:
dd32
Message:

WordPress.tv: Limit the output to singular video pages.

See #5512.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php

    r10465 r10466  
    170170        $data = [];
    171171
    172         if ( is_singular() ) {
    173 
    174             $video = $this->get_the_video_details();
     172        if (
     173            is_singular( 'post' ) &&
     174            ( $video = $this->get_the_video_details() )
     175        ) {
    175176
    176177            $lang = false;
Note: See TracChangeset for help on using the changeset viewer.