Make WordPress Core

Opened 8 months ago

Last modified 8 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:
PR Number:


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

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

8 months ago

#1 @spacedmonkey
8 months ago

  • Keywords has-patch added

#2 @SergeyBiryukov
8 months ago

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

#3 @SergeyBiryukov
8 months ago

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

Note: See TracTickets for help on using tickets.