[wp-trac] [WordPress Trac] #55883: Reverse wrapping of `apply_shortcodes()` and `do_shortcode()`
WordPress Trac
noreply at wordpress.org
Wed Sep 21 15:04:31 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: needs-docs has-patch commit needs- | Focuses:
dev-note add-to-field-guide |
-------------------------------------------------+-------------------------
Comment (by davidbaumwald):
In [changeset:"54278" 54278]:
{{{
#!CommitTicketReference repository="" revision="54278"
Shortcodes: Revert default filter callback changes from `apply_shortcodes`
to `do_shortcode`.
[54248] reversed the wrapping of `do_shortcode` and `apply_shortcodes` and
updated all direct internal calls of `do_shortcode` to `apply_shortcodes`
after [47004]. Default filter callbacks that used `do_shortcode` were
also updated to use `apply_shortcodes`. However, this introduced a
backward-compatibility break because any attempt to unhook a filter using
the previous `do_shortcode` callback would be futile.
This change reverts only the filter callback changes in [54248] to resolve
the backward-compatibility break.
Follow-up to [47004] and [54248].
Props ocean90, SergeyBiryukov.
See #55883.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55883#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list