[wp-trac] [WordPress Trac] #45516: Auto Draft title issue for custom post types
WordPress Trac
noreply at wordpress.org
Fri Nov 28 22:53:47 UTC 2025
#45516: Auto Draft title issue for custom post types
-------------------------------------------------+-------------------------
Reporter: rajanit2000 | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 7.0
Component: Posts, Post Types | Version: 5.0
Severity: normal | Resolution:
Keywords: has-screenshots has-test-info has- | Focuses:
patch has-unit-tests commit | administration
-------------------------------------------------+-------------------------
Changes (by SirLouen):
* keywords:
has-screenshots has-test-info has-patch has-unit-tests needs-copy-
review
=> has-screenshots has-test-info has-patch has-unit-tests commit
* severity: minor => normal
* milestone: Future Release => 7.0
Comment:
I've been rethinking on this topic after a couple of days and got to an
entirely new conclusion which for some reason has not be suggested so far:
I don't really understand why we are setting a title at all here. If the
title is not supported, we should simply leave the title empty.
In [https://core.trac.wordpress.org/attachment/ticket/45516/45516.patch
the first patch] they first settled to `(no title)` (which happens to be
the default with no title), and I believe that this conditioned the
direction of the whole discussion from there and brought a lot of
misdirected thought about what to set instead.
But I've been re-reading the whole conversation and thinking again about
what [comment:60 wildworks said]:
> 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.
Which I completely misread back in the day 🤦
In Gutenberg, by default, `No Title` is placed when no title exists. And
since here there is no support for titles, so I entirely agree with him:
why are we actually setting one?
[[Image(https://i.imgur.com/37LQt7j.png)]]
In most classic themes, a weird title is appearing (now it's Auto Draft),
but if we set `(no title supported)` or `(no title)` or whatever, it will
make 0 sense
But since no title is supported, no title should appear (unless we
obviously programmatically set one)
[[Image(https://i.imgur.com/H9QQMOq.png)]]
I have updated the PR and the testing suite. I'm closing
[https://github.com/WordPress/gutenberg/issues/73090 GB73090] as it makes
no sense to me any more.
Let's fix this ticket.
cc @wildworks @peterwilsoncc
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45516#comment:77>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list