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 ) { |
971 | 971 | $custom_logo_attr['alt'] = get_bloginfo( 'name', 'display' ); |
972 | 972 | } |
973 | 973 | |
| 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 | |
974 | 985 | /* |
975 | 986 | * If the alt attribute is not empty, there's no need to explicitly pass |
976 | 987 | * it because wp_get_attachment_image() already adds the alt attribute. |