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

WordPress Trac noreply at wordpress.org
Wed Apr 29 15:07:11 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 westonruter):

 Are there places where `clamp()` should be used in core? I think generally
 a polyfill would be added if it is actually used.

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


More information about the wp-trac mailing list