Make WordPress Core

Changeset 31224


Ignore:
Timestamp:
01/17/2015 06:33:42 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Introduce has_header_image() to check whether a header image is set.

props GunGeekATX, voldemortensen.
fixes #16268.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r31219 r31224  
    10361036
    10371037/**
     1038 * Check whether a header image is set or not.
     1039 *
     1040 * @since 4.2.0
     1041 *
     1042 * @return bool
     1043 */
     1044function has_header_image() {
     1045    return (bool) get_header_image();
     1046}
     1047
     1048/**
    10381049 * Retrieve header image for custom header.
    10391050 *
Note: See TracChangeset for help on using the changeset viewer.