[wp-trac] [WordPress Trac] #41422: Need replace_filter() function for improved Just In Time filter adjusment
WordPress Trac
noreply at wordpress.org
Mon Jul 24 15:20:03 UTC 2017
#41422: Need replace_filter() function for improved Just In Time filter adjusment
-------------------------+------------------------------
Reporter: bobbingwide | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by bobbingwide):
Hi @azaozz
I might not have proposed this solution had priorities been used correctly
in the first place.
But the new just in time code for text widgets and custom HTML widgets has
to attempt to work with what it's been given, which could mean that the
filter function being removed (do_shortcode) and replaced is not the only
one at a particular priority.
In the tests that I've added I show how remove and add filter can affect
the results.
The replacement method, when all the disabled functions have been
restored, produces the same results as before.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41422#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list