[wp-trac] [WordPress Trac] #36327: Custom logo: the image size argument is not taking in account

WordPress Trac noreply at wordpress.org
Fri Mar 25 13:07:36 UTC 2016


#36327: Custom logo: the image size argument is not taking in account
--------------------------+-----------------------------
 Reporter:  imath         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In this [https://make.wordpress.org/core/2016/03/10/custom-logo/ post] on
 Make.WP.org

 you explain we can set/get the image size of the custom logo this way :

 {{{
 add_image_size( 'theme-prefix-logo', 400, 175 );
 add_theme_support( 'custom-logo', array(
    'size' => 'theme-prefix-logo',
 ) );
 }}}

 Unfortunately it's not working anymore, the size argument is not kept in
 the `add_theme_support()` function. As a result, the full size is always
 output. It looks like adding the size arguments to the defaults one is
 fixing the issue.

 See suggested patch, attached to this ticket.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36327>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list