[wp-trac] [WordPress Trac] #51560: Create polyfills for str_contains(), str_starts_with() and str_ends_with() for PHP 8

WordPress Trac noreply at wordpress.org
Sat Oct 17 18:11:00 UTC 2020


#51560: Create polyfills for str_contains(), str_starts_with() and str_ends_with()
for PHP 8
---------------------------+-----------------------------
 Reporter:  superpoincare  |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:  trunk
 Severity:  minor          |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 PHP 8 will have new functions str_contains(), str_starts_with() and
 str_ends_with()

 These are going to be popular and there are some who aren't developers but
 can copy/paste from websites. This creates the risk that they might copy
 paste some code involving these functions while not being upgraded to PHP
 8 in their servers.

 So it will be useful if these have polyfills in core.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51560>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list