[wp-trac] [WordPress Trac] #44738: Error in displaying editor setting after re-login
WordPress Trac
noreply at wordpress.org
Thu Aug 9 07:00:48 UTC 2018
#44738: Error in displaying editor setting after re-login
-------------------------------+------------------------------
Reporter: tmatsuur | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 4.9.8
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by subrataemfluence):
Thank you for nice and clear steps. I will try the same at my end. the
only difference would be my OS, which is Ubuntu. Let's see!
Replying to [comment:3 tmatsuur]:
> Replying to [comment:2 tmatsuur]:
> > Replying to [comment:1 subrataemfluence]:
> > > Are you talking about Gutenberg? Can you please explain the issue a
bit more?
> > > For me I could not reproduce it.
> > > Please provide the steps to regenerate the issue.
> >
> > It occurred in Gutenberg.
> >
> > I will check if the problem recurs.
>
> The same problem was reproduced by the following procedure.
>
> 1.Install WordPress 4.9.8. Then install and activate Gutenberg.
>
> 2.Added the following source code to functions.php of Twenty Seventeen.
> {{{
> function shorten_auth_cookie_expiration( $sec, $user_id, $remember ) {
> return 60;
> }
> add_filter( 'auth_cookie_expiration', 'shorten_auth_cookie_expiration',
10, 3 );
> }}}
>
> 3.Log in to the admin page.
>
> 4.Click Posts > All Posts in the navigation.
>
> 5.Click 'Hello World!'.
>
> 6.Wait for the login form to pop up.
>
> 7.Enter your username and password to login.
>
> 8.Click the "Add block" area(Move the mouse pointer and the (+)mark is
displayed).
>
> 9.An error is displayed on the console.
> {{{
> GET http://local2/wp-json/wp/v2/types/wp_block?context=edit 403
(Forbidden)
> index.js?ver=1533789473:1 Uncaught (in promise) {code:
"rest_cookie_invalid_nonce", message: "Cookie nonce is invalid", data:
{…}}
> }}}
>
> OS: Windows 10
> Browser: Chrome 68.0.3440.84
> WordPress: 4.9.8
> Gutenberg: 3.4.0
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44738#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list