Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#46185 closed defect (bug) (duplicate)

Custom logo looses alt text when cropped in customizer

Reported by: jarledb's profile jarledb Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.5
Component: Customize Keywords:
Focuses: Cc:

Description

When adding a site logo via the customizer and using the cropping function, the custom logo looses its ability to have an alt text set and displayed on the site.

From what I can see this happens because the post meta for custom_logo is set to the new cropped image, and that image does not inherit the alt text from the original uploaded image.

There is no way to set a new alt text for this cropped image through the media library.

Change History (2)

#1 @jarledb
6 years ago

get_theme_mod( 'custom_logo' ) returns the ID of the cropped image, not the original image. The cropped image does not have the alt text from the original image, and no alt text can be assigned the cropped image through media library.

#2 @dlh
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version set to 4.5

Hi @jarledb, and welcome to WordPress Trac!

Thanks for your report. This issue is being tracked in #37750.

Note: See TracTickets for help on using tickets.