Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #45516, comment 72


Ignore:
Timestamp:
11/11/2025 06:59:59 PM (2 months ago)
Author:
mindctrl
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #45516, comment 72

    initial v1  
    77Any default fallback text for posts with no title is going to be confusing in the admin, without some kind of additional code to update the list table display. Is a list of 20 posts with "Auto Draft" really more confusing than 20 posts with "(no title)" or similar? There's still no way to differentiate them.
    88
    9 `get_the_title()` provides an empty string for the title of one does not exist on the post object, but I don't imagine that's a common occurrence given post_title is a NOT NULL field.
     9`get_the_title()` provides an empty string for the title if one does not exist on the post object.
    1010
    1111The Twenty Twenty One theme filters `the_title` to change an empty string to "Untitled".