[wp-trac] [WordPress Trac] #49922: PHP Compatibility fixes for 5.5

WordPress Trac noreply at wordpress.org
Wed May 27 22:50:04 UTC 2020


#49922: PHP Compatibility fixes for 5.5
----------------------------+-------------------------------
 Reporter:  desrosj         |       Owner:  desrosj
     Type:  task (blessed)  |      Status:  assigned
 Priority:  normal          |   Milestone:  5.5
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  coding-standards
----------------------------+-------------------------------

Comment (by johnbillion):

 Replying to [comment:9 desrosj]:
 > 2 occurrences of `php_errormsg` in `wp-includes/rss.php`.

 The `$php_errormsg` variable is set within the current scope after an
 error occurs. Given this check is on the first line of the function, and
 therefore the first line of the scope, I can't see how this variable will
 ever exist at this point. It looks safe to remove both instances of the
 handling of `$php_errormsg` here.

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


More information about the wp-trac mailing list