WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/18/2016 08:04:36 PM (5 years ago)
Author:
westonruter
Message:

Customize: Implement customized state persistence with changesets.

Includes infrastructure developed in the Customize Snapshots feature plugin.

See https://make.wordpress.org/core/2016/10/12/customize-changesets-technical-design-decisions/

Props westonruter, valendesigns, utkarshpatel, stubgo, lgedeon, ocean90, ryankienstra, mihai2u, dlh, aaroncampbell, jonathanbardo, jorbin.
See #28721.
See #31089.
Fixes #30937.
Fixes #31517.
Fixes #30028.
Fixes #23225.
Fixes #34142.
Fixes #36485.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r38809 r38810  
    55245524    return false;
    55255525}
     5526
     5527/**
     5528 * Generate a random UUID (version 4).
     5529 *
     5530 * @since 4.7.0
     5531 *
     5532 * @return string UUID.
     5533 */
     5534function wp_generate_uuid4() {
     5535    return sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
     5536        mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ),
     5537        mt_rand( 0, 0xffff ),
     5538        mt_rand( 0, 0x0fff ) | 0x4000,
     5539        mt_rand( 0, 0x3fff ) | 0x8000,
     5540        mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff )
     5541    );
     5542}
Note: See TracChangeset for help on using the changeset viewer.