[wp-trac] [WordPress Trac] #37422: do_shortcode() weakens semantics

WordPress Trac noreply at wordpress.org
Sat Dec 21 20:10:37 UTC 2019


#37422: do_shortcode() weakens semantics
-------------------------------------------------+-------------------------
 Reporter:  thefarlilacfield                     |       Owner:
                                                 |  ljasinskipl
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.4
Component:  Shortcodes                           |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  good-first-bug has-patch needs-      |     Focuses:  docs,
  refresh                                        |  template
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47004" 47004]:
 {{{
 #!CommitTicketReference repository="" revision="47004"
 Shortcodes: Introduce `apply_shortcodes()` as an alias for
 `do_shortcode()`.

 This better aligns with the semantics of applying filters to the input and
 returning a result, rather than performing an action and outputting to the
 current buffer.

 Props ljasinskipl, thefarlilacfield.
 Fixes #37422.
 }}}

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


More information about the wp-trac mailing list