Make WordPress Core


Ignore:
Timestamp:
02/16/2016 10:11:14 PM (9 years ago)
Author:
ocean90
Message:

Themes: Use the attachment ID as the key in get_uploaded_header_images().

Prevents missing header images when an image has the same name as another header image.

Props sirbrillig.
Fixes #31786.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/custom-header.php

    r36250 r36539  
    978978     *  for randomly cycling among the default images; 'random-uploaded-image', for randomly cycling
    979979     *  among the uploaded images; the key of a default image registered for that theme; and
    980      *  the key of an image uploaded for that theme (the basename of the URL).
     980     *  the key of an image uploaded for that theme (the attachment ID of the image).
    981981     *  Or an array of arguments: attachment_id, url, width, height. All are required.
    982982     */
Note: See TracChangeset for help on using the changeset viewer.