WordPress.org

Make WordPress Core

Ticket #38942: 38942.diff

File 38942.diff, 627 bytes (added by junaidbhura, 5 years ago)
  • src/wp-includes/theme.php

    diff --git src/wp-includes/theme.php src/wp-includes/theme.php
    index cf1bb0f..bf0fb6c 100644
    function get_header_image_tag( $attr = array() ) { 
    10621062                }
    10631063        }
    10641064
     1065        /**
     1066         * Filters the list of header image attributes.
     1067         *
     1068         * @since 4.7.1
     1069         *
     1070         * @param array  $attr   Array of the attributes for the image tag.
     1071         * @param object $header The custom header object returned by 'get_custom_header()'.
     1072         */
     1073        $attr = apply_filters( 'get_header_image_tag_attributes', $attr, $header );
     1074
    10651075        $attr = array_map( 'esc_attr', $attr );
    10661076        $html = '<img';
    10671077