[wp-trac] [WordPress Trac] #52889: Add filter to disable forced plain permalinks
WordPress Trac
noreply at wordpress.org
Mon Apr 19 08:06:39 UTC 2021
#52889: Add filter to disable forced plain permalinks
-------------------------+------------------------------
Reporter: cneumann | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 5.7
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by cneumann):
@peterwilsoncc I have custom checks as a `map_meta_cap` filter for the
`read_post` capability that are expensive. I could cache them for
permalinks, but I don't now who called the check and I must not cache the
check for all calls (e.g. when a page is actually visited and I have to
decide if the user is permitted to do so).
Yes, the preflight filter looks even nicer. Would be a good solution to
have something like this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52889#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list