[wp-trac] [WordPress Trac] #39778: Introduce helper function to validate UUID V4

WordPress Trac noreply at wordpress.org
Mon Sep 18 23:03:08 UTC 2017


#39778: Introduce helper function to validate UUID V4
---------------------------------------------+--------------------------
 Reporter:  jonathanbardo                    |       Owner:  westonruter
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  4.9
Component:  Customize                        |     Version:  4.8
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+--------------------------
Changes (by westonruter):

 * owner:   => westonruter
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41388"]:
 {{{
 #!CommitTicketReference repository="" revision="41388"
 Customize: Add `wp_is_uuid()` validation function with optional second
 `$version=4` parameter to enforce v4 random UUIDs.

 Props jonathanbardo.
 Fixes #39778.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39778#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list