Make WordPress Core


Ignore:
Timestamp:
03/30/2016 05:19:41 PM (9 years ago)
Author:
obenland
Message:

Template: Remove $size reference from get_custom_logo().

Argument was removed in [37077] in favor of with and height arguments.

Props ocean90.
Fixes #36327.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/general/template.php

    r36952 r37135  
    280280        $this->_set_custom_logo();
    281281        $home_url = get_home_url( $blog_id, '/' );
    282         $size     = get_theme_support( 'custom-logo', 'size' );
    283         $size     = $size ? $size : 'full';
    284         $image    = wp_get_attachment_image( $this->custom_logo_id, $size, false, array(
    285             'class'     => "custom-logo attachment-$size",
    286             'data-size' => $size,
     282        $image    = wp_get_attachment_image( $this->custom_logo_id, 'full', false, array(
     283            'class'     => 'custom-logo',
    287284            'itemprop'  => 'logo',
    288285        ) );
     
    303300
    304301        $this->_set_custom_logo();
    305         $size  = get_theme_support( 'custom-logo', 'size' );
    306         $size  = $size ? $size : 'full';
    307         $image = wp_get_attachment_image( $this->custom_logo_id, $size, false, array(
    308             'class'     => "custom-logo attachment-$size",
    309             'data-size' => $size,
     302        $image = wp_get_attachment_image( $this->custom_logo_id, 'full', false, array(
     303            'class'     => 'custom-logo',
    310304            'itemprop'  => 'logo',
    311305        ) );
Note: See TracChangeset for help on using the changeset viewer.