[wp-trac] [WordPress Trac] #44883: Twenty Seventeen: Use simple counter rather than uniqid() for generating unique IDs for HTML elements
WordPress Trac
noreply at wordpress.org
Thu Sep 6 21:49:23 UTC 2018
#44883: Twenty Seventeen: Use simple counter rather than uniqid() for generating
unique IDs for HTML elements
---------------------------+----------------------------
Reporter: westonruter | Owner: laurelfulford
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 4.9.9
Component: Bundled Theme | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+----------------------------
Comment (by westonruter):
Replying to [comment:3 dlh]:
> Having implemented essentially the same thing on more than one project,
I personally would value the function in the patch being made available in
core generally. What kind of case would need to be made for that to
happen?
Like a `wp_unique_id()` function added to `functions.php`? I like that. We
would just need to differentiate it from being a ''universially'' unique
ID, which is what `wp_generate_uuid4()` is for.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44883#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list