Changeset 37135 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 03/30/2016 05:19:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r37005 r37135 877 877 878 878 $custom_logo_id = get_theme_mod( 'custom_logo' ); 879 $size = get_theme_support( 'custom-logo', 'size' );880 881 if ( ! $size ) {882 $size = 'full';883 }884 879 885 880 // We have a logo. Logo is go. … … 887 882 $html = sprintf( '<a href="%1$s" class="custom-logo-link" rel="home" itemprop="url">%2$s</a>', 888 883 esc_url( home_url( '/' ) ), 889 wp_get_attachment_image( $custom_logo_id, $size, false, array( 890 'class' => "custom-logo attachment-$size", 891 'data-size' => $size, 892 'itemprop' => 'logo', 884 wp_get_attachment_image( $custom_logo_id, 'full', false, array( 885 'class' => 'custom-logo', 886 'itemprop' => 'logo', 893 887 ) ) 894 888 ); … … 897 891 // If no logo is set but we're in the Customizer, leave a placeholder (needed for the live preview). 898 892 elseif ( is_customize_preview() ) { 899 $html = sprintf( '<a href="%1$s" class="custom-logo-link" style="display:none;"><img class="custom-logo" data-size="%2$s" /></a>', 900 esc_url( home_url( '/' ) ), 901 esc_attr( $size ) 893 $html = sprintf( '<a href="%1$s" class="custom-logo-link" style="display:none;"><img class="custom-logo"/></a>', 894 esc_url( home_url( '/' ) ) 902 895 ); 903 896 } … … 913 906 * 914 907 * @param string $html Custom logo HTML output. 915 * @param string $size Size specified in add_theme_support declaration, or 'full' default. 916 */ 917 return apply_filters( 'get_custom_logo', $html, $size ); 908 */ 909 return apply_filters( 'get_custom_logo', $html ); 918 910 } 919 911
Note: See TracChangeset
for help on using the changeset viewer.