[wp-trac] [WordPress Trac] #16754: PHP5-port - srand()

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 19 00:50:29 UTC 2011


#16754: PHP5-port - srand()
-------------------------+------------------------------
 Reporter:  hakre        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  3.3
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------
Changes (by crrobi01):

 * version:  3.1 => 3.3


Comment:

 * Removed srand()
 * There's no reason to do floor(rand()) when rand() always returns an
 integer.
 * Renamed $emailNOSPAMaddy to $email_no_spam_addy to match
 [http://codex.wordpress.org/WordPress_Coding_Standards#Naming_Conventions
 Coding Standards]
 * Replaced "$i = $i + 1" with "$i++" which is more common in WordPress

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16754#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list