Make WordPress Core

Opened 10 months ago

Last modified 10 months ago

#60996 new defect (bug)

WordPress 6.5.2 displays multiple h1 - wp_link_dialog is displayed

Reported by: vousys's profile vousys Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 6.5
Component: Editor Keywords: needs-patch reporter-feedback
Focuses: Cc:

Description

file: wp-includes/class-wp-editor.php
line: 1867
This function: wp_link_dialog is being displayed on the frontend causing multiple h1 tags on the same page

Change History (3)

#1 @jorbin
10 months ago

  • Keywords reporter-feedback added

hi @vousys, welcome to WordPress Trac. I'm not able to replicate this using one of the default themes and no plugins and looking at the homepage and an article page. Can you please provide some more detailed steps to reproduce?

#2 @sabernhardt
10 months ago

Possibly related: #46918

#3 @vousys
10 months ago

  • Summary changed from WordPress 6.5.2 displays to WordPress 6.5.2 displays multiple h1 - wp_link_dialog is displayed

Hi guys, thanks for you reply.
Yes it's related in part with the ticket mentioned, but it's happening on the frontend, that's what caught my attention when ahref-site audit run today and informed us that we've multiple h1 tags on pages. The only thing I did yesterday was updating to Version 6.5.2 and updating all plugins after that.
To solve my issue for now, I've re-update to version 6.5.2 but as the problem wasn't solve, I've edited the file mentioned by changing the <h1> per <h3> just to avoid SEO mistakes. I don't understand why this function is being populate on the frontend publishing this div:
<div id="wp-link-backdrop" style="display: none">

Note: See TracTickets for help on using tickets.