[wp-trac] [WordPress Trac] #45516: Auto Draft title issue for custom post types
WordPress Trac
noreply at wordpress.org
Mon Aug 25 22:48:52 UTC 2025
#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:
has-test-info has-patch has-unit-tests | administration
-------------------------------------------------+-------------------------
Changes (by SirLouen):
* keywords: has-copy-review has-screenshots needs-testing => has-copy-
review has-screenshots has-test-info has-patch has-unit-tests
Comment:
== Test Report
=== Description
✅ This report validates that the indicated patch works as expected.
Patch tested:
https://core.trac.wordpress.org/attachment/ticket/45516/45516.2.diff
=== Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.29
- Server: nginx/1.29.1
- Database: mysqli (Server: 8.4.6 / Client: mysqlnd 8.2.29)
- Browser: Chrome 139.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.3
- MU Plugins: None activated
- Plugins:
* Testing Dolly 1.0.0
* Test Reports 1.2.0
=== Testing Instructions
1. Add the code in the first post (remember to add it to a function and
hook it into init)
2. Publish a new post to the new CPT called "Social Posts"
3. 🐞 Title return wrongly "Auto Draft"
=== Actual Results
1. ✅ Issue resolved with patch, adding "No title supported". (By the
default a post without title displays just "No title")
=== Additional Notes
Replying to [comment:40 Cybr]:
> 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.
I think this is worth another report. Although it's correlated, it is an
entirely different topic.
- Added a Unit Test for this.
=== Supplemental Artifacts
[[Image(https://i.imgur.com/JEcra9N.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45516#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list