[wp-trac] [WordPress Trac] #45516: Auto Draft title issue for custom post types
WordPress Trac
noreply at wordpress.org
Mon Dec 8 21:53:21 UTC 2025
#45516: Auto Draft title issue for custom post types
-------------------------------------------------+-------------------------
Reporter: rajanit2000 | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 7.0
Component: Posts, Post Types | Version: 5.0
Severity: normal | Resolution: fixed
Keywords: has-screenshots has-test-info has- | Focuses:
patch has-unit-tests commit | administration
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"61360" 61360]:
{{{
#!CommitTicketReference repository="" revision="61360"
Posts, Post Types: Only set default title for custom post types if they
have title support.
Previously, the default post title was always set to `Auto Draft`,
regardless of whether the CPT supports a title.
This commit ensures that the default title is present when a CPT has title
support, and is an empty string otherwise.
Follow-up to [12987], [49288], [49614].
Props SirLouen, rajanit2000, garrett-eclipse, wildworks, nrqsnchz,
donmhico, marybaum, audrasjb, bridgetwillard, TimothyBlynJacobs, joyously,
hellofromTonya, helen, Cybr, mosescursor, fakhriaz, gulamdastgir04,
peterwilsoncc, mindctrl, westonruter, SergeyBiryukov.
Fixes #45516.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45516#comment:82>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list