[wp-trac] [WordPress Trac] #45516: Auto Draft title issue for custom post types
WordPress Trac
noreply at wordpress.org
Mon Nov 10 06:01:35 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 needs- | administration
testing |
-------------------------------------------------+-------------------------
Comment (by wildworks):
I reread the entire discussion and considered what the ideal solution
would be.
My understanding is that the "title" post type support simply determines
whether or not to display the UI for editing the title in the editor. It
doesn't relate to what the title of that post is, or whether the title
should be displayed on the front end. For example, `the_title` and
`get_the_title` do not consider whether that post type supports titles.
Furthermore, if we proceed with [https://github.com/WordPress/wordpress-
develop/pull/9597 PR 9597], unintended problems will occur. Try the
following:
- Add a post type without `title` support.
- Add and save a post.
- Check the display on the front end.
- The title will be `(no title supported)`.
The text `(no title supported)` only for the dashboard and should not be
displayed on the front end.
This result is to be expected, as the reason is that the string is stored
in the `post_title` column of the database. However, a similar problem
already exists in the trunk branch, where `Auto Draft` is displayed on the
frontend.
Another problem is that these titles are not localized even when the site
language is changed.
Perhaps it would be ideal to set an empty string instead of forcing some
string as the title? That way, it would work as follows:
- Dashboard: `(no-title)` is displayed as a fallback.
- Front end: Nothing is displayed as a title.
In any case, I agree to punt this ticket to a future release, as I feel
there is still insufficient discussion and investigation to proceed with
it in 6.9.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45516#comment:60>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list