Ticket #36640: custom-logo-img_filter.patch
| File custom-logo-img_filter.patch, 1.0 KB (added by , 10 years ago) |
|---|
-
src/wp-includes/general-template.php
879 879 880 880 // We have a logo. Logo is go. 881 881 if ( $custom_logo_id ) { 882 $img = wp_get_attachment_image( $custom_logo_id, 'full', false, array( 883 'class' => 'custom-logo', 884 'itemprop' => 'logo', 885 ) ); 886 887 /** 888 * Filter the custom logo image tag. 889 * 890 * @param string $img Custom logo image tag. 891 * @param string $blog_id ID of the blog in question. 892 * @param string $custom_logo_id Custom logo attachment ID. 893 */ 894 $img = apply_filters( 'get_custom_logo_img', $img, $blog_id, $custom_logo_id ); 895 882 896 $html = sprintf( '<a href="%1$s" class="custom-logo-link" rel="home" itemprop="url">%2$s</a>', 883 897 esc_url( home_url( '/' ) ), 884 wp_get_attachment_image( $custom_logo_id, 'full', false, array( 885 'class' => 'custom-logo', 886 'itemprop' => 'logo', 887 ) ) 898 $img 888 899 ); 889 900 } 890 901
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)