[wp-trac] [WordPress Trac] #10457: Parse shortcodes in text widgets by default

WordPress Trac noreply at wordpress.org
Wed Nov 15 02:32:08 UTC 2017


#10457: Parse shortcodes in text widgets by default
-------------------------------------------------+-------------------------
 Reporter:  ionfish                              |       Owner:
     Type:  enhancement                          |  westonruter
 Priority:  normal                               |      Status:  closed
Component:  Widgets                              |   Milestone:  4.9
 Severity:  normal                               |     Version:  2.8
 Keywords:  westi-likes has-patch commit has-    |  Resolution:  fixed
  unit-tests has-dev-note                        |     Focuses:
-------------------------------------------------+-------------------------

Comment (by westonruter):

 In [changeset:"42186"]:
 {{{
 #!CommitTicketReference repository="" revision="42186"
 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 4.9.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/10457#comment:71>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list