Make WordPress Core

Ticket #36640: 36640.diff

File 36640.diff, 936 bytes (added by dlh, 4 years ago)
  • src/wp-includes/general-template.php

    diff --git src/wp-includes/general-template.php src/wp-includes/general-template.php
    index 1995cca45f..44699eb36c 100644
    function get_custom_logo( $blog_id = 0 ) { 
    971971                        $custom_logo_attr['alt'] = get_bloginfo( 'name', 'display' );
    972972                }
    973973
     974                /**
     975                 * Filters the list of custom logo image attributes.
     976                 *
     977                 * @since 5.4.0
     978                 *
     979                 * @param string $custom_logo_attr Custom logo image attributes.
     980                 * @param string $custom_logo_id   Custom logo attachment ID.
     981                 * @param string $blog_id          ID of the blog to get the custom logo for.
     982                 */
     983                $custom_logo_attr = apply_filters( 'get_custom_logo_image_attributes', $custom_logo_attr, $custom_logo_id, $blog_id );
     984
    974985                /*
    975986                 * If the alt attribute is not empty, there's no need to explicitly pass
    976987                 * it because wp_get_attachment_image() already adds the alt attribute.