[wp-trac] [WordPress Trac] #65143: Add polyfill for PHP 8.6's clamp() function

WordPress Trac noreply at wordpress.org
Thu Apr 30 08:15:05 UTC 2026


#65143: Add polyfill for PHP 8.6's clamp() function
-------------------------+--------------------------------
 Reporter:  Soean        |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  php-compatibility
-------------------------+--------------------------------

Comment (by Soean):

 @westonruter I added two places to the PR, where we can use it in Core.

 Providing a polyfill in WordPress Core ensures that plugin and theme
 developers can use it consistently across all supported PHP versions
 without needing to implement their own.

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


More information about the wp-trac mailing list