[wp-trac] [WordPress Trac] #55194: wp_rand( 0, 0) result in random integer

WordPress Trac noreply at wordpress.org
Tue May 3 02:32:50 UTC 2022


#55194: wp_rand( 0, 0)  result in random integer
---------------------------------------------+---------------------
 Reporter:  mlajo                            |       Owner:  (none)
     Type:  defect (bug)                     |      Status:  new
 Priority:  normal                           |   Milestone:  6.1
Component:  General                          |     Version:  5.9
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  docs
---------------------------------------------+---------------------
Changes (by peterwilsoncc):

 * milestone:  6.0 => 6.1


Comment:

 I'm moving this to the 6.1 milestone as it's technically a backward
 compatibility break, which doesn't seem great in the hours leading up to
 the RC. The change in behavior will also need a dev-note and there isn't
 time to put one together.

 I did a search of the plugin repo and found an instance of a plugin using
 `wp_rand(0, 0)` to generate a random key. I found one so prior to commit
 someone will need to get in touch with the author of the plugin.

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


More information about the wp-trac mailing list