[wp-trac] [WordPress Trac] #55883: Reverse wrapping of `apply_shortcodes()` and `do_shortcode()`

WordPress Trac noreply at wordpress.org
Fri Sep 30 19:11:07 UTC 2022


#55883: Reverse wrapping of `apply_shortcodes()` and `do_shortcode()`
------------------------------------------+-----------------------
 Reporter:  SergeyBiryukov                |       Owner:  audrasjb
     Type:  enhancement                   |      Status:  reopened
 Priority:  normal                        |   Milestone:  6.1
Component:  Shortcodes                    |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  has-patch 2nd-opinion revert  |     Focuses:
------------------------------------------+-----------------------

Comment (by azaozz):

 Replying to [comment:30 TobiasBg]:

 > Due to there not being a feasible path to fully switching to a new
 function name, the rich history and widespread use of `do_shortcode()`,
 the low use of `apply_shortcodes()`, I would therefore actually suggest to
 deprecate `apply_shortcodes()` again. There's no need to keep a rarely
 used alias that Core itself will not be able to use and that plugin
 developers have not started to use in 6 or 7 WP releases.

 Deprecating `apply_shortcodes()` sounds like the next logical step. But
 even if it is deprecated it cannot ever be removed. So perhaps the docs
 can be updated a bit and it can remain as an alias. Extenders would still
 have the choice to use it. However the chances to confuse new contributors
 will be super low.

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


More information about the wp-trac mailing list