Changeset 36950
- Timestamp:
- 03/10/2016 07:02:25 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r36949 r36950 878 878 $custom_logo_id = get_theme_mod( 'custom_logo' ); 879 879 $size = get_theme_support( 'custom-logo', 'size' ); 880 881 if ( ! $size ) { 882 $size = 'full'; 883 } 880 884 881 885 // We have a logo. Logo is go. -
trunk/tests/phpunit/tests/general/template.php
r36949 r36950 281 281 $home_url = get_home_url( $blog_id, '/' ); 282 282 $size = get_theme_support( 'custom-logo', 'size' ); 283 $size = $size ? $size : 'full'; 283 284 $image = wp_get_attachment_image( $this->custom_logo_id, $size, false, array( 284 285 'class' => "custom-logo attachment-$size", … … 303 304 $this->_set_custom_logo(); 304 305 $size = get_theme_support( 'custom-logo', 'size' ); 306 $size = $size ? $size : 'full'; 305 307 $image = wp_get_attachment_image( $this->custom_logo_id, $size, false, array( 306 308 'class' => "custom-logo attachment-$size",
Note: See TracChangeset
for help on using the changeset viewer.