WordPress/wp-includes/widgets
Weston Ruter ee126d2567 Widgets: Set global `$post` to current queried object instead of nullifying when `is_singular()` while applying filters (and shortcodes) in Text widget and (via plugin) Custom HTML widget.
Also prevent `[gallery]` shortcode from dumping out every attachment on the site when a containing Text widget is shown on an archive template.

Props westonruter, bobbingwide, joemcgill for testing.
See #10457.
Fixes #42548, #42547 for trunk.

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


git-svn-id: http://core.svn.wordpress.org/trunk@42015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-11-15 02:27:48 +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 Widgets: Set global `$post` to current queried object instead of nullifying when `is_singular()` while applying filters (and shortcodes) in Text widget and (via plugin) Custom HTML widget. 2017-11-15 02:27: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: Improve extensibility of the Gallery widget and of media widgets generally. 2017-10-19 23:44:48 +00:00
class-wp-widget-media-image.php Widgets: Prevent showing underlying attachment excerpt as caption when empty caption value is supplied in Image widget. 2017-10-27 05:05:51 +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: Improve extensibility of the Gallery widget and of media widgets generally. 2017-10-19 23:44:48 +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: Set global `$post` to current queried object instead of nullifying when `is_singular()` while applying filters (and shortcodes) in Text widget and (via plugin) Custom HTML widget. 2017-11-15 02:27:48 +00:00