[wp-trac] [WordPress Trac] #38768: Custom logo is missing meaningful alt attribute
WordPress Trac
noreply at wordpress.org
Sun Feb 5 11:41:32 UTC 2017
#38768: Custom logo is missing meaningful alt attribute
-------------------------------------+----------------------------
Reporter: sami.keijonen | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.8
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: accessibility
-------------------------------------+----------------------------
Comment (by gma992):
@nobremarcos
The check in the patch is here:
{{{
if ( empty( $image_alt ) ) {
$image_alt = get_bloginfo( 'name' );
}
}}}
I've just tested it and works fine when adding a new logo.
If the alt field is empty, is populated automatically with the site title,
otherwise is populated with the custom alt text added into the field. Mind
to clarify the steps to reproduce why is not working on your end? Maybe I
misunderstood the issue you're seeing?
On the other hand, as @sami.keijonen pointed out, when we crop the image,
it does not grab the customized alt text, but populates it by an empty alt
text by default or with the site title after being patched.
This is the normal behavior thought (but not the expected one) as when we
crop the logo, we're creating a new image on the media gallery, and that
new image has no alt text yet.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38768#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list