[wp-trac] [WordPress Trac] #52889: Add filter to disable forced plain permalinks

WordPress Trac noreply at wordpress.org
Tue Mar 23 12:04:29 UTC 2021

#52889: Add filter to disable forced plain permalinks
 Reporter:  cneumann     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Security     |    Version:  5.7
 Severity:  normal       |   Keywords:
  Focuses:               |
 There should be an option to disable forced plain permalinks introduced
 with #5272. In my use case, showing the permalinks is totally fine and a
 requirement, even for private posts. Even worse,
 `wp_force_plain_post_permalink` results in additional capatibility checks
 which are expensive in my use case, especially for pages with lots of
 permalinks (e.g. menus). Setting the posts or the post statuses to public
 is not possible, as this results in other unwanted side effects. With
 `wp_force_plain_post_permalink`, there is currently no way to have the old

 As a proposal, I added a patch that introduces a filter for
 `wp_force_plain_post_permalink` to completely disable the check.

Ticket URL: <https://core.trac.wordpress.org/ticket/52889>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list