WordPress.org

Make WordPress Core

Ticket #46134: 46134.diff

File 46134.diff, 703 bytes (added by webmandesign, 14 months ago)
  • src/wp-includes/theme.php

     
    10751075        $header      = get_custom_header();
    10761076        $header->url = get_header_image();
    10771077
     1078        /**
     1079         * Filters the markup of header images setup object.
     1080         *
     1081         * @since TODO
     1082         *
     1083         * @param object $header The custom header object returned by 'get_custom_header()' with 'get_header_image()' image URL.
     1084         * @param array  $attr   Array of the attributes for the image tag.
     1085         */
     1086        $header = apply_filters( 'header_image_tag_object', $header, $attr );
     1087
    10781088        if ( ! $header->url ) {
    10791089                return '';
    10801090        }