[wp-trac] [WordPress Trac] #37011: Don’t link custom logo if it’s displayed on the front page
WordPress Trac
noreply at wordpress.org
Thu Jul 30 16:30:37 UTC 2020
#37011: Don’t link custom logo if it’s displayed on the front page
------------------------------------+----------------------------
Reporter: FlorianBrinkmann | Owner: joedolson
Type: enhancement | Status: reopened
Priority: highest omg bbq | Milestone: 5.5
Component: Themes | Version: 4.6
Severity: blocker | Resolution:
Keywords: has-patch has-dev-note | Focuses: accessibility
------------------------------------+----------------------------
Comment (by sabernhardt):
It's very likely too late to add this in time for 5.5, but if and when the
logo is linked on the homepage, the link could have the `aria-current`
attribute.
{{{
} else {
$aria_current = is_front_page() ? ' aria-
current="page"' : '';
$html = sprintf(
'<a href="%1$s" class="custom-logo-link"
rel="home"%2$s>%3$s</a>',
esc_url( home_url( '/' ) ),
$aria_current,
$image
);
}
}}}
I could add a separate ticket for later discussion, if desired.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37011#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list