[wp-trac] [WordPress Trac] #47094: Widgets: current-page links are not programmatically labelled as such
WordPress Trac
noreply at wordpress.org
Tue Sep 3 14:28:05 UTC 2019
#47094: Widgets: current-page links are not programmatically labelled as such
-------------------------------------------------+-------------------------
Reporter: audrasjb | Owner: audrasjb
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.3
Component: Widgets | Version:
Severity: normal | Resolution:
Keywords: has-screenshots has-patch needs- | Focuses:
dev-note wpcampus-report aria-current | accessibility
-------------------------------------------------+-------------------------
Comment (by afercia):
> in 47094.diff​ I'm trying to avoid this checking also for is_single(),
not sure if there are better ways to avoid the attribute gets printed out
also in pages that aren't posts
I think one option could be using `get_queried_object_id()`, any thoughts
welcome.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47094#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list