[wp-trac] [WordPress Trac] #44746: Default title and content are not reflected in new editing.

WordPress Trac noreply at wordpress.org
Tue Aug 7 01:14:31 UTC 2018


#44746: Default title and content are not reflected in new editing.
--------------------------+-----------------------------
 Reporter:  tmatsuur      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  4.9.8
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I set the initial content using the 'default_content' filter in my plugin,
 but it will not work as intended.
 In the get_default_post_to_edit function, although run the
 'default_content' filter after saving empty post data, it seems that this
 is not reflected in the new editor.

 Experimentally, set 'Hello' to post_title, set 'World' to post_content and
 updated post data after 'default_title' filter.
 As a result, the title of the new editor was left empty, but 'World' was
 reflected in the content part.

 I thought that the 'default_content' and 'default_title' filters are not
 working properly with the new editor.

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


More information about the wp-trac mailing list