WordPress.org

Make WordPress Core

Opened 10 days ago

#48813 new defect (bug)

WP 5.3 can't longer use editPost to change content

Reported by: secretprotonium Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.3
Component: Editor Keywords: needs-patch
Focuses: ui, javascript, administration Cc:
PR Number:

Description

Since WP 5.3 and also in the newest development version of WordPress.
It's impossible to change the content of the editor with:

wp.data.dispatch( 'core/editor' ).editPost( { title: 'My awesome title, will be set.', content: 'My awesome content will no longer be set :c' } );

in all versions before it just worked perfectly but since 5.3 it's broken.
The title and everything else can still be changed only the content is inaccessible now.

Why is this and how can I fix it? Respectively what is the new way to change the content?

Change History (0)

Note: See TracTickets for help on using tickets.