[wp-trac] [WordPress Trac] #48076: Gutenberg 6.5: Add Nonce Endpoint
WordPress Trac
noreply at wordpress.org
Thu Sep 19 18:00:52 UTC 2019
#48076: Gutenberg 6.5: Add Nonce Endpoint
--------------------------+-----------------------
Reporter: iseulde | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.3
Component: Editor | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: |
--------------------------+-----------------------
This is a follow up to #47843.
See https://core.trac.wordpress.org/ticket/47843#comment:29.
I added the action that was added for the plugin in
https://github.com/WordPress/gutenberg/pull/16683.
This can be tested by adding lowering the nonce life to 5 seconds. Load
the page, then wait 5 seconds and try to update or publish a post.
{{{#!php
<?php
add_filter( 'nonce_life', function() {
return 5;
} );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48076>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list