[wp-trac] [WordPress Trac] #45516: Auto Draft title issue for custom post types

WordPress Trac noreply at wordpress.org
Wed Oct 2 23:19:16 UTC 2019


#45516: Auto Draft title issue for custom post types
-----------------------------------+-----------------------------
 Reporter:  rajanit2000            |       Owner:  SergeyBiryukov
     Type:  defect (bug)           |      Status:  reviewing
 Priority:  normal                 |   Milestone:  5.4
Component:  Posts, Post Types      |     Version:  5.0
 Severity:  minor                  |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:  administration
-----------------------------------+-----------------------------
Changes (by garrett-eclipse):

 * milestone:  5.3 => 5.4


Comment:

 Thanks @donmhico for testing, I ran through myself and was able to
 reproduce the issue on Trunk w/ Twenty Twenty and the code provided in the
 description. Looking at the code base when you go to add a post it creates
 the auto-draft w/ title of 'Auto-Draft'. Reviewing code there's a few ways
 you can avoid the auto-draft such as disabling the functionality or
 providing a `post_title` on the request, you can also avoid it by
 programatically creating the post. @donmhico maybe you circumvented it
 somehow, would you mind retesting on trunk and confirm you are or aren't
 seeing the issue now.

 As there's some work to be done here and a decision needed on behaviour
 I'm going to move this into 5.4 to address there.

 The item requiring `2nd-opinion` is;
 "Going to switch this from ui-feedback to 2nd-opinion to get thoughts on
 if having it be a customizable label makes sense or if just going with
 '(no title)' here is the extent we want to go here."
 @SergeyBiryukov do you have any thoughts on a customizable label or just
 using `(no title)`?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45516#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list