WordPress.org

Make WordPress Core

Opened 6 months ago

Last modified 6 months ago

#46718 new defect (bug)

Loading from source in WP_Widget_Media_Video

Reported by: spacedmonkey Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8
Component: Widgets Keywords: has-patch
Focuses: Cc:

Description

The video widget allow for src url. However, checks are for attachment that are unnecessary.

Attachments (1)

46718.diff (760 bytes) - added by spacedmonkey 6 months ago.

Download all attachments as: .zip

Change History (4)

@spacedmonkey
6 months ago

#1 @spacedmonkey
6 months ago

  • Keywords has-patch added

#2 @SergeyBiryukov
6 months ago

if ( $src ) seems to be redundant, given the if ( empty( $src ) ) { return; } check above.

#3 @SergeyBiryukov
6 months ago

Introduced in [41759], modified in [41765].

Note: See TracTickets for help on using tickets.