Opened 5 years ago
Closed 4 years ago
#48813 closed defect (bug) (reported-upstream)
WP 5.3 can't longer use editPost to change content
Reported by: | secretprotonium | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.3 |
Component: | Editor | Keywords: | needs-patch |
Focuses: | ui, javascript, administration | Cc: |
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 (1)
Note: See
TracTickets for help on using
tickets.
https://github.com/WordPress/gutenberg/issues/26717