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

WordPress Trac noreply at wordpress.org
Sat Dec 21 19:12:01 UTC 2019


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

Comment (by SergeyBiryukov):

 Introducing an `apply_shortcodes()` alias for `do_shortcode()` for better
 semantics in the same way [27409] did for
 `get_the_permalink()`/`get_permalink()` makes sense to me.

 Deprecating `do_shortcode()` is probably not an option due to high usage
 in plugins and themes, however having an alias could also be a first step
 towards its eventual deprecation if there is consensus it's worth the
 effort.

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


More information about the wp-trac mailing list