[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
Mon Sep 24 20:57:02 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:  closed
 Priority:  normal            |   Milestone:  4.9.9
Component:  Bundled Theme     |     Version:  4.7
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"43659" 43659]:
 {{{
 #!CommitTicketReference repository="" revision="43659"
 Twenty Seventeen: Use a simple counter incremented with each call instead
 of `uniqid()` for generating unique IDs for HTML elements.

 Props westonruter.
 Fixes #44883.
 }}}

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


More information about the wp-trac mailing list