WordPress / developer-blog-content

In this GitHub space, WordPress team coordinate content to be published on the Developer Blog. Discussion and montly meetings (first Thu) in WP Slack #core-dev-blog
40 stars 5 forks source link

How to use nonces the right way #95

Closed zzap closed 1 year ago

zzap commented 1 year ago

Discussed in https://github.com/WordPress/developer-blog-content/discussions/28

Originally posted by **bph** December 4, 2022 Thank you to @zzap for suggesting this topic! What would be the flow of such a post?
zzap commented 1 year ago

Progress update: I have a structure draft for now. Not reviewable yet.

zzap commented 1 year ago

Working on draft: https://docs.google.com/document/d/1g5-HKh1IOpfeSE2huWQwFN3A1z8ksMfZxwdJ6JL2RoY/edit?usp=sharing

bph commented 1 year ago

That's a great start! I added a comment regarding the code snippet and made some minor suggestions. Looking forward to read the full post.

bph commented 1 year ago

@zzap

Pre-publishing checklist:

Post-publishing checklist

zzap commented 1 year ago

@bph I feel like existing categories are not quite covering it. Why is there Block development and not any other development?

zzap commented 1 year ago

This is the public preview https://developer.wordpress.org/news/?p=1746&preview=1&_ppp=e984a00227

zzap commented 1 year ago

Published https://developer.wordpress.org/news/2023/08/understand-and-use-wordpress-nonces-properly/

Social copy

Do you know how to validate and refresh the nonce? Or how to send it to the REST API endpoints? Find out this and much more in this detailed article: https://developer.wordpress.org/news/2023/08/understand-and-use-wordpress-nonces-properly/