mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 23:55:12 +01:00
84d2c51153
* Used now in core to facilitate displaying inserted media. See #40854. * The `[embed]` shortcode is not supported because there is no post context for caching oEmbed responses. This depends on #34115. * Add `do_shortcode()` to the `widget_text_content` filter in the same way it is added for `the_content` at priority 11, with `shortcode_unautop()` called at priority 10 after `wpautop()`. * For Text widget in legacy mode, manually apply `do_shortcode()` (and `shortcode_unautop()` if auto-paragraph checked) if the core-added `widget_text_content` filter remains, unless a plugin added `do_shortcode()` to `widget_text` to prevent applying shortcodes twice. * Ensure that global `$post` is `null` while filters apply in the Text widget so shortcode handlers won't run with unexpected contexts. Props westonruter, nacin, aaroncampbell. See #40854, #34115. Fixes #10457. Built from https://develop.svn.wordpress.org/trunk@41361 git-svn-id: http://core.svn.wordpress.org/trunk@41194 1a063a9b-81f0-0310-95a4-ce76da25c4cd |
||
---|---|---|
.. | ||
class-wp-nav-menu-widget.php | ||
class-wp-widget-archives.php | ||
class-wp-widget-calendar.php | ||
class-wp-widget-categories.php | ||
class-wp-widget-custom-html.php | ||
class-wp-widget-links.php | ||
class-wp-widget-media-audio.php | ||
class-wp-widget-media-image.php | ||
class-wp-widget-media-video.php | ||
class-wp-widget-media.php | ||
class-wp-widget-meta.php | ||
class-wp-widget-pages.php | ||
class-wp-widget-recent-comments.php | ||
class-wp-widget-recent-posts.php | ||
class-wp-widget-rss.php | ||
class-wp-widget-search.php | ||
class-wp-widget-tag-cloud.php | ||
class-wp-widget-text.php |