[wp-trac] [WordPress Trac] #50245: extend functionality to stop further actions on hook on a priority range
WordPress Trac
noreply at wordpress.org
Mon May 25 14:09:25 UTC 2020
#50245: extend functionality to stop further actions on hook on a priority range
--------------------------+--------------------------------------------
Reporter: Alignak | Owner: (none)
Type: enhancement | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Cache API | Version:
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses: performance, coding-standards
--------------------------+--------------------------------------------
Comment (by Alignak):
@apedog many thanks for the example, I wasn't aware that this was possible
and it will greatly improve some performance tests that I am doing right
now.
I apologize for abusing your kindness... but do you know if it's possible
to make anonymous functions used by themes, somehow "static" without
editing the original code?
For example, there are some theme authors (such as the Divi theme and
their editor) that make use of anonymous functions to inline css code and
generate stuff in the_content. This causes their css code to change on
every pageview (usually a prefix for a class or id attribute). I was
wondering if it's possible to prevent that randomness somehow.
The code you posted will likely be useful to maybe cache some of that
stuff, but I was wondering if there is any other way.
I will inspect the {{{wp-includes/wp-class-hook.php}}} file, thank you
very much.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50245#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list