[wp-trac] [WordPress Trac] #47911: redirect_guess_404_permalink does not consider public custom posts status
WordPress Trac
noreply at wordpress.org
Mon Mar 28 23:46:19 UTC 2022
#47911: redirect_guess_404_permalink does not consider public custom posts status
-------------------------------------------------+-------------------------
Reporter: goaroundagain | Owner:
| peterwilsoncc
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 6.0
Component: Canonical | Version: 5.2.2
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests early | Focuses:
needs-dev-note |
-------------------------------------------------+-------------------------
Comment (by peterwilsoncc):
In the [https://github.com/WordPress/wordpress-develop/pull/2470 linked
pull request]:
* built upon the previous work in [attachment:"47911_htdat_3.diff"]
* now uses `is_post_status_viewable()` to determine public post statuses
* added `esc_sql` to the SQL `IN()`
* extended tests to include custom public, private, internal and protected
statuses
Is `pre_redirect_guess_404_permalink` adequate in terms of filters or
should a filter for the post statuses to include be added?
Naming suggestions are welcome if you think the filter is needed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47911#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list