[wp-trac] [WordPress Trac] #30300: setUserSetting js function only removes first unwanted character
WordPress Trac
noreply at wordpress.org
Thu Nov 14 18:35:51 UTC 2024
#30300: setUserSetting js function only removes first unwanted character
----------------------------+-------------------------
Reporter: TV productions | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Administration | Version: 2.7
Severity: normal | Resolution: duplicate
Keywords: has-patch | Focuses: javascript
----------------------------+-------------------------
Changes (by desrosj):
* keywords: has-patch dev-feedback => has-patch
* status: new => closed
* resolution: => duplicate
Comment:
Hi @tv-productions,
My apologies that this one fell between the cracks.
I've taken a look and it seems that this is no longer an issue for a few
reasons.
First, [33840] introduced support for the `-` character in
`setUserSetting` through #22781. While this did not fix the underlying bug
you are reporting here, it does make the specific example you used
obsolete.
However, [33947] was a follow up commit that added the `g` modifier
matching the suggested fix in your patch. because of this, I'm going to
close this out as a duplicate.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30300#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list