[wp-trac] [WordPress Trac] #54910: 5.9 Bug - Blank Home Page

WordPress Trac noreply at wordpress.org
Sat Jan 29 08:05:13 UTC 2022


#54910: 5.9 Bug - Blank Home Page
--------------------------------------+------------------------------
 Reporter:  cantuaria                 |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Themes                    |     Version:  5.9
 Severity:  major                     |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by costdev):

 @Ov3rfly:
 > Would recommend to use native available PHP functions as suggested in
 #23.

 Sorry, I just saw this comment.

 While I typically agree to use native functions:
 - Allowing contributors to write code using modern PHP functions makes the
 contributor experience more consistent with modern development, and lowers
 the learning curve for newer developers.
 - As long as you evaluate the modern PHP function before polyfilling it,
 and you follow its spec when writing the polyfill, it should offer
 benefits in performance and/or stability and/or readability.
 - As we move to higher minimum PHP versions, the codebase remains intact
 except for updating `wp-includes/compat.php`.
 - We tested the polyfill extensively. That said, those interested in doing
 so can test it for discrepancies with the native `str_contains()` in
 PHP8+.

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


More information about the wp-trac mailing list