Ticket #31786: 31786.diff
File 31786.diff, 1.3 KB (added by , 10 years ago) |
---|
-
wp-admin/custom-header.php
944 944 * @param mixed $choice Which header image to select. Allows for values of 'random-default-image', 945 945 * for randomly cycling among the default images; 'random-uploaded-image', for randomly cycling 946 946 * among the uploaded images; the key of a default image registered for that theme; and 947 * the key of an image uploaded for that theme (the basename of the URL).947 * the key of an image uploaded for that theme (the attachment ID of the image). 948 948 * Or an array of arguments: attachment_id, url, width, height. All are required. 949 949 * 950 950 * @since 3.4.0 -
wp-includes/theme.php
1178 1178 foreach ( (array) $headers as $header ) { 1179 1179 $url = esc_url_raw( wp_get_attachment_url( $header->ID ) ); 1180 1180 $header_data = wp_get_attachment_metadata( $header->ID ); 1181 $header_index = basename($url);1181 $header_index = $header->ID; 1182 1182 $header_images[$header_index] = array(); 1183 1183 $header_images[$header_index]['attachment_id'] = $header->ID; 1184 1184 $header_images[$header_index]['url'] = $url;