[wp-trac] [WordPress Trac] #57395: Improve wp_die message when previewing post revision with expired nonce and unauthenticated requests

WordPress Trac noreply at wordpress.org
Thu Dec 29 11:53:51 UTC 2022


#57395: Improve wp_die message when previewing post revision with expired nonce and
unauthenticated requests
-------------------------+-----------------------------
 Reporter:  dunhakdis    |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Revisions    |    Version:  6.1.1
 Severity:  normal       |   Keywords:  has-patch
  Focuses:               |
-------------------------+-----------------------------
 For example, when viewing a revision with an expired nonce,
 http://localhost/sample-
 page/?preview_id=2&preview_nonce=07cb875d46&preview=true, a message
 "Sorry, you are not allowed to preview drafts". This works okay. However,
 the same message with the same status code (403) is being sent when
 viewing as an unauthenticated user (logged out).

 Would it be a good enhancement if we revised the status code and message a
 bit for a logged-out user?

 Thanks

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


More information about the wp-trac mailing list