Make WordPress Core


Ignore:
Timestamp:
09/24/2018 08:56:59 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Twenty Seventeen: Use a simple counter incremented with each call instead of uniqid() for generating unique IDs for HTML elements.

Props westonruter.
Fixes #44883.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/inc/icon-functions.php

    r42343 r43659  
    7575        if ( $args['title'] ) {
    7676                $aria_hidden     = '';
    77                 $unique_id       = uniqid();
     77                $unique_id       = twentyseventeen_unique_id();
    7878                $aria_labelledby = ' aria-labelledby="title-' . $unique_id . '"';
    7979
Note: See TracChangeset for help on using the changeset viewer.