Changeset 43658 for trunk/src/wp-includes/functions.php
- Timestamp:
- 09/24/2018 08:56:30 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r43657 r43658 6169 6169 6170 6170 /** 6171 * Get unique ID. 6172 * 6173 * This is a PHP implementation of Underscore's uniqueId method. A static variable 6174 * contains an integer that is incremented with each call. This number is returned 6175 * with the optional prefix. As such the returned value is not universally unique, 6176 * but it is unique across the life of the PHP process. 6177 * 6178 * @since 4.9.9 6179 * 6180 * @staticvar int $id_counter 6181 * 6182 * @param string $prefix Prefix for the returned ID. 6183 * @return string Unique ID. 6184 */ 6185 function wp_unique_id( $prefix = '' ) { 6186 static $id_counter = 0; 6187 return $prefix . (string) ++$id_counter; 6188 } 6189 6190 /** 6171 6191 * Get last changed date for the specified cache group. 6172 6192 *
Note: See TracChangeset
for help on using the changeset viewer.