[wp-meta] [Making WordPress.org] #4406: Avoid duplicate anchors when generating table of contents in the Handbook

Making WordPress.org noreply at wordpress.org
Thu Apr 25 16:17:28 UTC 2019


#4406: Avoid duplicate anchors when generating table of contents in the Handbook
-----------------------------+--------------------
 Reporter:  garrett-eclipse  |      Owner:  (none)
     Type:  defect           |     Status:  new
 Priority:  normal           |  Milestone:
Component:  Handbooks        |   Keywords:
-----------------------------+--------------------
 Hello,

 As suggested by @sergey in Slack I'm opening this ticket to address the
 duplicate anchors that can occur when the same heading is used multiple
 times in a document.

 For instance originally the Working with Patches document had several
 'Applying a Patch' references which all anchored to '#applying-a-patch' so
 they'd all lead to the first item.

 I've addressed this by manually making all the headings unique for this
 page;
 https://make.wordpress.org/core/handbook/tutorials/working-with-patches/

 It was indicated the code for this is located here;
 https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html
 /wp-content/plugins/handbook/inc/table-of-contents.php

 All the best,
 Cheers

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/4406>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list