Ticket #14519: 14519-2.diff
File 14519-2.diff, 924 bytes (added by , 14 years ago) |
---|
-
twentyten/functions.php
103 103 // Your changeable header business starts here 104 104 define( 'HEADER_TEXTCOLOR', '' ); 105 // No CSS, just IMG call. The %s is a placeholder for the theme template directory URI.106 define( 'HEADER_IMAGE', '%s/images/headers/path.jpg' );107 105 108 106 // The height and width of your custom header. You can hook into the theme's own filters to change these values. … … 176 174 ) 177 175 ) ); 176 177 // Use a consistent random default header 178 global $_wp_default_headers; 179 $header_names = array_keys( $_wp_default_headers ); 180 $header_key = crc32( site_url( '', 'https' ) ) % count( $_wp_default_headers ); 181 define( 'HEADER_IMAGE', $_wp_default_headers[$header_names[$header_key]]['url'] ); 178 182 } 179 183 endif;