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

WordPress Trac noreply at wordpress.org
Thu Feb 9 13:15:40 UTC 2023


#45516: Auto Draft title issue for custom post types
-------------------------------------------------+-------------------------
 Reporter:  rajanit2000                          |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Posts, Post Types                    |     Version:  5.0
 Severity:  minor                                |  Resolution:
 Keywords:  has-copy-review has-screenshots      |     Focuses:
  needs-testing                                  |  administration
-------------------------------------------------+-------------------------

Comment (by Cybr):

 If the post type had support for titles but lost it, the last stored value
 will be unalterable but still used.

 Therefore, I think it's best to (also) have a `post_type_supports()` check
 in `single_post_title()`.

 This (extra) check may impact developers that deliberately removed support
 but have prefilled the value. But I think this is where they had to filter
 `single_post_title` instead.

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


More information about the wp-trac mailing list