[wp-trac] [WordPress Trac] #54301: It is not possible to set 0 as post title
WordPress Trac
noreply at wordpress.org
Thu Oct 21 21:58:56 UTC 2021
#54301: It is not possible to set 0 as post title
-------------------------------+------------------------------
Reporter: h71 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------------+------------------------------
Changes (by sayedulsayem):
* version: => trunk
Comment:
the title is coming from this function {{{ $title =
_draft_or_post_title(); }}}. In this function there is an empty check like
{{{ if ( empty( $title ) ) }}}. This will return false when {{{ $title =
0; }}}. Need to change this condition. I added a patch with it.
Committer: Please ignore my PR. I messed up this that PR. Please consider
this patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54301#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list