[wp-trac] [WordPress Trac] #56586: Remove extra sanitization before caching in get_pages function
WordPress Trac
noreply at wordpress.org
Fri Sep 16 11:40:33 UTC 2022
#56586: Remove extra sanitization before caching in get_pages function
-------------------------------+-----------------------------
Reporter: david.binda | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Keywords:
Focuses: performance |
-------------------------------+-----------------------------
This ticket is related to #50567 , respectively r53042 , where a filter is
set to `raw` for any post passed through the `update_post_cache` function.
There is a [https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/post.php?rev=54126#L6210 custom logic in `get_pages()` function
for preventing duplicate sanitization] of pages before they are cached
(introduced in r12062 ), which is now redundant.
IMHO, we can safely remove the custom logic from the function when r53042
is in place.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56586>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list