[wp-trac] [WordPress Trac] #48813: WP 5.3 can't longer use editPost to change content

WordPress Trac noreply at wordpress.org
Wed Nov 27 15:40:12 UTC 2019


#48813: WP 5.3 can't longer use editPost to change content
--------------------------------------------+-----------------------------
 Reporter:  secretprotonium                 |      Owner:  (none)
     Type:  defect (bug)                    |     Status:  new
 Priority:  normal                          |  Milestone:  Awaiting Review
Component:  Editor                          |    Version:  5.3
 Severity:  normal                          |   Keywords:  needs-patch
  Focuses:  ui, javascript, administration  |
--------------------------------------------+-----------------------------
 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?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48813>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list