[wp-trac] [WordPress Trac] #14519: Random Twenty Ten Default	Header
    WordPress Trac 
    wp-trac at lists.automattic.com
       
    Wed Aug  4 00:57:15 UTC 2010
    
    
  
#14519: Random Twenty Ten Default Header
-------------------------+--------------------------------------------------
 Reporter:  nickmomrik   |        Owner:                 
     Type:  enhancement  |       Status:  reopened       
 Priority:  normal       |    Milestone:  Awaiting Review
Component:  Themes       |      Version:                 
 Severity:  normal       |   Resolution:                 
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment(by mdawaffe):
 Replying to [comment:5 nacin]:
 > I think this code would rotate the image on every page load until a
 header is chosen from the admin, versus simply provide the install with a
 single default header chosen at random from the 8 images?
 Other way around.  crc32 is an old school hashing algorithm, not a random
 number generator.  The code hashes the site_url(), then grabs a header
 image based on the hash.  Same header for every page load.
 Caveat: the current patch doesn't set a scheme in the site_url() call so
 you'll have a different (but consistent) header for each scheme (http,
 https).
-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14519#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
    
    
More information about the wp-trac
mailing list