[wp-trac] [WordPress Trac] #59866: Attachment pages are only disabled for users that are logged in

WordPress Trac noreply at wordpress.org
Fri Jan 19 00:43:04 UTC 2024


#59866: Attachment pages are only disabled for users that are logged in
-------------------------------------------------+-------------------------
 Reporter:  joppuyo                              |       Owner:
                                                 |  peterwilsoncc
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.4.3
Component:  Media                                |     Version:  6.4
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

 * owner:  (none) => peterwilsoncc
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57310" 57310]:
 {{{
 #!CommitTicketReference repository="" revision="57310"
 Media: Redirect inactive attachement pages for logged-out users.

 Ensure logged out users are redirected to the media file when attachment
 pages are inactive. This removes the `read_post` capability check from the
 canonical redirects as anonymous users lack the permission.

 Follow-up to [56657], [56658], [56711].

 Props afercia, aristath, chesio, joppuyo, jorbin, lakshmananphp, poena,
 sergeybiryukov.
 Fixes #59866.
 See #57913.
 }}}

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


More information about the wp-trac mailing list