[wp-trac] [WordPress Trac] #44056: Fix markup for table of contents on privacy policy guide
WordPress Trac
noreply at wordpress.org
Sat May 12 14:30:14 UTC 2018
#44056: Fix markup for table of contents on privacy policy guide
-------------------------------+------------------------------
Reporter: ocean90 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9.6
Component: Administration | Version: trunk
Severity: normal | Keywords: needs-patch gdpr
Focuses: ui, accessibility |
-------------------------------+------------------------------
There are a few issues with current ToC:
1. The Introduction link has an empty anchor. It should have a specific
one just like the others:
https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/includes/misc.php?rev=43242&marks=1606#L1606
2. Instead of the empty anchor tag the ID can be directly assigned to the
headline: https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/includes/misc.php?rev=43242&marks=1636#L1636
3. The date format should be consistent across the admin, see [35811].
`get_option( 'date_format' )` needs to be replaced:
https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/includes/misc.php?rev=43242&marks=1607#L1607
4. The ToC IDs are not guaranteed to be unique on the page. I suggest to
prefix them with `policy-<plugin name>` or something else:
https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/includes/misc.php?rev=43242&marks=1632#L1632
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44056>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list