[wp-trac] [WordPress Trac] #48965: Prefer strict PHP comparisons over loose PHP comparisons

WordPress Trac noreply at wordpress.org
Wed Apr 8 14:11:13 UTC 2020


#48965: Prefer strict PHP comparisons over loose PHP comparisons
-------------------------+-------------------------------
 Reporter:  pikamander2  |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  5.4
Component:  General      |     Version:
 Severity:  minor        |  Resolution:  fixed
 Keywords:               |     Focuses:  coding-standards
-------------------------+-------------------------------

Comment (by Otto42):

 Possible backwards compatibility break on this:

 https://wordpress.org/support/topic/5-4-sending-post-via-email-results-in-
 no-title-for-the-post-title/

 Specifically line 213 in wp-mail.php, where it detects a blank title.
 Seems that it wasn't really an empty string in some cases, but depended on
 it being empty enough.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48965#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list