Making WordPress.org

Opened 3 years ago

Closed 3 years ago

#5973 closed defect (bug) (fixed)

Table of Contents contains too much

Reported by: joyously's profile joyously Owned by: dd32's profile dd32
Milestone: Priority: normal
Component: Developer Hub Keywords: has-screenshots
Cc:

Description

Looking at a Code Reference page for a function, like https://developer.wordpress.org/reference/functions/get_extended/
the table of Contents in the sidebar has a link to "Logged in as x. Log out?" and more text from the instructions about leaving feedback, which are not links, and don't belong there.

It looks like the plugin looking at more than the_content.

Attachments (1)

get_extended() Function WordPress Developer Resources-27.jpg (400.0 KB) - added by joyously 3 years ago.
the extra stuff is in the sidebar at the bottom of CONTENTS

Download all attachments as: .zip

Change History (3)

@joyously
3 years ago

the extra stuff is in the sidebar at the bottom of CONTENTS

#1 @joyously
3 years ago

I just noticed that there are two sections at the bottom that are almost the same, for adding feedback. That extra might be where the ToC plugin is getting it from.

#2 @dd32
3 years ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 11354:

Handbooks, ToC: Be less greedy when matching headings within the content.

[11341] didn't change the greedyness, but as it was now matching headings with attributes, it was matching too much on reference pages.

Additionally, we now don't use style-only headings (those without text) as valid sections.

See #5963.
Fixes #5973.

Note: See TracTickets for help on using tickets.