Make WordPress Core

Opened 7 years ago

Last modified 2 years ago

#37972 new defect (bug)

Image size (height/width) arguments are not used in output for custom_logo

Reported by: binarykitten's profile BinaryKitten Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.6
Component: Themes Keywords: has-patch
Focuses: Cc:

Description

when setting up the custom logo in theme support, it allows for height/width to be set.

When outputting, the default and only option for the output (via the_custom_logo() ) is "full" (as set in the get_custom_logo function call)

This is carry over from commit
[37135] for #36327

Change History (2)

This ticket was mentioned in Slack in #themereview by joyously. View the logs.


5 years ago

This ticket was mentioned in PR #1423 on WordPress/wordpress-develop by paulschreiber.


2 years ago
#2

  • Keywords has-patch added

Fetch the height and width from the custom logo settings. If present, pass them in as a size parameter to wp_get_attachment_image().

Trac ticket: https://core.trac.wordpress.org/ticket/37972

Note: See TracTickets for help on using tickets.