[wp-trac] [WordPress Trac] #41387: Avoid 403's from AJAX requests from postbox.js
WordPress Trac
noreply at wordpress.org
Thu Jul 20 15:34:25 UTC 2017
#41387: Avoid 403's from AJAX requests from postbox.js
----------------------------+-----------------------------
Reporter: bobbingwide | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: trunk
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
While making some improvements to a plugin's admin pages I changed the
HTML in my meta boxes to be more inline with WordPress core. I then
noticed that I was getting 403's from the closed-postboxes AJAX request
each time I toggled the display of the postbox.
Since I don't have a requirement for the open/closed state of my postboxes
to persist I don't need the AJAX requests. Consequently I don't have a
#closedpostboxesnonce.
So, to avoid the 403's I changed postbox.js to not perform the AJAX
request if the nonce isn't set.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41387>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list