Make WordPress Core

Changeset 36950


Ignore:
Timestamp:
03/10/2016 07:02:25 PM (8 years ago)
Author:
obenland
Message:

Template: Explicitly set full as the default custom logo size.

See #33755.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r36949 r36950  
    878878    $custom_logo_id = get_theme_mod( 'custom_logo' );
    879879    $size           = get_theme_support( 'custom-logo', 'size' );
     880
     881    if ( ! $size ) {
     882        $size = 'full';
     883    }
    880884
    881885    // We have a logo. Logo is go.
  • trunk/tests/phpunit/tests/general/template.php

    r36949 r36950  
    281281        $home_url = get_home_url( $blog_id, '/' );
    282282        $size     = get_theme_support( 'custom-logo', 'size' );
     283        $size     = $size ? $size : 'full';
    283284        $image    = wp_get_attachment_image( $this->custom_logo_id, $size, false, array(
    284285            'class'     => "custom-logo attachment-$size",
     
    303304        $this->_set_custom_logo();
    304305        $size  = get_theme_support( 'custom-logo', 'size' );
     306        $size  = $size ? $size : 'full';
    305307        $image = wp_get_attachment_image( $this->custom_logo_id, $size, false, array(
    306308            'class'     => "custom-logo attachment-$size",
Note: See TracChangeset for help on using the changeset viewer.