Make WordPress Core

Ticket #16268: 16268.2.diff

File 16268.2.diff, 503 bytes (added by voldemortensen, 10 years ago)
  • src/wp-includes/theme.php

     
    10551055}
    10561056
    10571057/**
     1058 * Checks whether a header image is set or not
     1059 *
     1060 * @return boolean
     1061 */
     1062function has_header_image() {
     1063        $header_image = get_header_image();
     1064        return !empty( $header_image );
     1065}
     1066
     1067/**
    10581068 * Get random header image data from registered images in theme.
    10591069 *
    10601070 * @since 3.4.0