Make WordPress Core

Ticket #16268: ticket16268.patch

File ticket16268.patch, 503 bytes (added by GunGeekATX, 10 years ago)

Proposed patch to implement has_header_image()

  • theme.php

     
    10471047}
    10481048
    10491049/**
     1050 * Whether the theme has a header image.
     1051 *
     1052 * @return bool true if the theme has a header image, otherwise false
     1053 */
     1054function has_header_image() {
     1055        $header_image = get_header_image();
     1056        return !empty($header_image);
     1057}
     1058
     1059/**
    10501060 * Get random header image data from registered images in theme.
    10511061 *
    10521062 * @since 3.4.0