Changeset 44407 for branches/5.0/src/wp-includes/functions.php
- Timestamp:
- 01/06/2019 08:07:34 PM (7 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
- Property svn:mergeinfo changed
/trunk merged: 43658,44406
- Property svn:mergeinfo changed
-
branches/5.0/src/wp-includes/functions.php
r43988 r44407 5795 5795 5796 5796 /** 5797 * Get unique ID. 5798 * 5799 * This is a PHP implementation of Underscore's uniqueId method. A static variable 5800 * contains an integer that is incremented with each call. This number is returned 5801 * with the optional prefix. As such the returned value is not universally unique, 5802 * but it is unique across the life of the PHP process. 5803 * 5804 * @since 5.0.3 5805 * 5806 * @staticvar int $id_counter 5807 * 5808 * @param string $prefix Prefix for the returned ID. 5809 * @return string Unique ID. 5810 */ 5811 function wp_unique_id( $prefix = '' ) { 5812 static $id_counter = 0; 5813 return $prefix . (string) ++$id_counter; 5814 } 5815 5816 /** 5797 5817 * Get last changed date for the specified cache group. 5798 5818 *
Note: See TracChangeset
for help on using the changeset viewer.