[wp-trac] [WordPress Trac] #49853: Sending post via email results in “(no title)” for the post title
WordPress Trac
noreply at wordpress.org
Thu Apr 9 08:38:24 UTC 2020
#49853: Sending post via email results in “(no title)” for the post title
----------------------------+---------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.4.1
Component: Mail | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+---------------------
Comment (by MattyRob):
@Otto42
I think it was me that
[https://core.trac.wordpress.org/ticket/48965#comment:13 highlighted] to
post title of 'zero' issue, following from conversation about this with
JoyR.
In my testing `if ( trim( $post_title ) === '' )` works as expected and
maintains the strict comparison:
`$tests = array( 0, NULL, 'foo', '', '0' );
foreach ( $tests as $test ) {
if ( '' === trim( $test ) ) {
var_dump( $test );
echo ' is empty!';
}
}`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49853#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list