WordPress/wp-includes/widgets
Weston Ruter 887998f7ed Widgets: Harden logic for checking for valid media URLs.
* Update deprecated `isHostedVideo` method to always return `true` since all oEmbeds are now supported.
* Disable `scanImage` for non-image media widgets.
* Ensure embed URL field element is matched from current media frame instance due to bug where media frames are not destroyed upon closing.
* Update error message for invalid video URLs to ask user to check the URL for validity.

Props gk.loveweb, octalmage, westonruter.
See #42039, #40935.
Fixes #41052.

Built from https://develop.svn.wordpress.org/trunk@41933


git-svn-id: http://core.svn.wordpress.org/trunk@41767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-19 00:07:54 +00:00
..
class-wp-nav-menu-widget.php Widgets: Rename "Custom Menu" widget to "Navigation Menu". 2017-10-15 22:23:47 +00:00
class-wp-widget-archives.php Widgets: Move empty title checks out of the `apply_filters( 'widget_title' )` calls for clarity. 2017-10-15 21:43:47 +00:00
class-wp-widget-calendar.php Widgets: Move empty title checks out of the `apply_filters( 'widget_title' )` calls for clarity. 2017-10-15 21:43:47 +00:00
class-wp-widget-categories.php Widgets: Move empty title checks out of the `apply_filters( 'widget_title' )` calls for clarity. 2017-10-15 21:43:47 +00:00
class-wp-widget-custom-html.php I18N: Use a consistent pattern for translator comments for placeholders in Customizer and widget strings. 2017-09-29 11:42:48 +00:00
class-wp-widget-links.php Widgets: Pass `$instance` to widget argument filters: 2017-10-02 22:02:47 +00:00
class-wp-widget-media-audio.php I18N: Use a consistent pattern for translator comments for placeholders in Customizer and widget strings. 2017-09-29 11:42:48 +00:00
class-wp-widget-media-gallery.php Widgets: Update default `link_type` for Gallery widget from `none` to `post` for consistency with `wp.media.galleryDefaults`. 2017-10-12 04:21:46 +00:00
class-wp-widget-media-image.php Widgets: Default to "custom URL" in the image widget. 2017-10-03 03:00:48 +00:00
class-wp-widget-media-video.php Widgets: Harden logic for checking for valid media URLs. 2017-10-19 00:07:54 +00:00
class-wp-widget-media.php Widgets: In `WP_Widget_Media`, apply `widget_title` filter regardless of whether the title is empty, same as other widgets do. 2017-10-15 21:29:51 +00:00
class-wp-widget-meta.php Widgets: Move empty title checks out of the `apply_filters( 'widget_title' )` calls for clarity. 2017-10-15 21:43:47 +00:00
class-wp-widget-pages.php Widgets: Move empty title checks out of the `apply_filters( 'widget_title' )` calls for clarity. 2017-10-15 21:43:47 +00:00
class-wp-widget-recent-comments.php Widgets: Pass `$instance` to widget argument filters: 2017-10-02 22:02:47 +00:00
class-wp-widget-recent-posts.php Widgets: Use a `foreach` loop instead of The Loop to iterate over posts in Recent Posts widget to avoid needing to reset a polluted global `$post`. 2017-10-18 00:34:46 +00:00
class-wp-widget-rss.php Widgets: Move empty title checks out of the `apply_filters( 'widget_title' )` calls for clarity. 2017-10-15 21:43:47 +00:00
class-wp-widget-search.php Widgets: Move empty title checks out of the `apply_filters( 'widget_title' )` calls for clarity. 2017-10-15 21:43:47 +00:00
class-wp-widget-tag-cloud.php Widgets: Move empty title checks out of the `apply_filters( 'widget_title' )` calls for clarity. 2017-10-15 21:43:47 +00:00
class-wp-widget-text.php Widgets: Move empty title checks out of the `apply_filters( 'widget_title' )` calls for clarity. 2017-10-15 21:43:47 +00:00