[wp-trac] [WordPress Trac] #63804: Proposal of wp_trim(): JavaScript-compatible alternative for trim()

WordPress Trac noreply at wordpress.org
Fri Aug 22 09:32:43 UTC 2025


#63804: Proposal of wp_trim(): JavaScript-compatible alternative for trim()
--------------------------------------+------------------------------
 Reporter:  takayukister              |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Formatting                |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by tusharbharti):

 Hi, as we have to port `mb_trim()` to compat as polyfills for lower
 version, should we also add polyfills for `mb_ltrim()` and `mb_rtrim()`.

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


More information about the wp-trac mailing list