WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/18/2016 08:04:36 PM (4 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/tests/phpunit/tests/functions.php

    r38685 r38810  
    881881        $this->assertEquals( WP_MAX_MEMORY_LIMIT, $ini_limit_after );
    882882    }
     883
     884    /**
     885     * Tests wp_generate_uuid4().
     886     *
     887     * @covers wp_generate_uuid4()
     888     * @ticket 38164
     889     */
     890    function test_wp_generate_uuid4() {
     891        $uuids = array();
     892        for ( $i = 0; $i < 20; $i += 1 ) {
     893            $uuid = wp_generate_uuid4();
     894            $this->assertRegExp( '/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/', $uuid );
     895            $uuids[] = $uuid;
     896        }
     897
     898        $unique_uuids = array_unique( $uuids );
     899        $this->assertEquals( $uuids, $unique_uuids );
     900    }
    883901}
Note: See TracChangeset for help on using the changeset viewer.