Make WordPress Core

Changeset 47307


Ignore:
Timestamp:
02/18/2020 05:50:54 PM (5 years ago)
Author:
desrosj
Message:

Widgets: Remove unnecessary redundant conditional.

Props spacedmonkey.
Fixes #46718.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-media-video.php

    r47055 r47307  
    130130        $vimeo_pattern   = '#^https?://(.+\.)?vimeo\.com/.*#';
    131131
    132         if ( $attachment || preg_match( $youtube_pattern, $src ) || preg_match( $vimeo_pattern, $src ) ) {
     132        if ( preg_match( $youtube_pattern, $src ) || preg_match( $vimeo_pattern, $src ) ) {
    133133            add_filter( 'wp_video_shortcode', array( $this, 'inject_video_max_width_style' ) );
    134134
Note: See TracChangeset for help on using the changeset viewer.