Making WordPress.org

Opened 2 weeks ago

#5102 new defect

Clicking 'Favourite' w/ expired cookie takes to page with json error

Reported by: garrett-eclipse Owned by:
Milestone: Priority: normal
Component: Plugin Directory Keywords:


If you're on a plugin page with an expired cookie and you click favourite it will take you to a white page with a json error;
{"code":"rest_cookie_invalid_nonce","message":"Cookie nonce is invalid","data":{"status":403}}
URL - https://wordpress.org/plugins/wp-json/plugins/v1/plugin/plugin-name/favorite?_wpnonce=d3dc9a15fb&favorite=1

It would be nice if this could be caught and provided as a nicer message on the page instead of taking over the entire page.

Change History (0)

Note: See TracTickets for help on using tickets.