[wp-trac] [WordPress Trac] #51776: Attachement page for private post type is a 404.

WordPress Trac noreply at wordpress.org
Mon Nov 16 03:07:34 UTC 2020


#51776: Attachement page for private post type is a 404.
--------------------------------------+----------------------------
 Reporter:  Toro_Unit                 |       Owner:  peterwilsoncc
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:  5.6
Component:  Permalinks                |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+----------------------------

Comment (by peterwilsoncc):

 Thanks boss, much appreciated!

 You're correct, the issue comes from #5272. The use of `get_post_status()`
 in the new check in `redirect_canonical()` is causing part of the issue
 but I am still to get my full notes worked out on the issue. I will drop
 them here once I have them.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51776#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list