[wp-trac] [WordPress Trac] #46918: Link Modal Dialog of Editor adds H1-tag to site

WordPress Trac noreply at wordpress.org
Sat Apr 13 18:23:22 UTC 2019


#46918: Link Modal Dialog of Editor adds H1-tag to site
--------------------------+-----------------------------
 Reporter:  Asgaros       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  trunk
 Severity:  minor         |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 Hello everyone,

 if the WordPress-editor is used on the front-end by calling the
 ''wp_editor()'' function (e.g. for the comments-area or somewhere else
 inside a plugin), a H1 headline-tag is added to the end of the HTML-
 sourcecode.

 This tag is part of the editors modal-dialog for inserting/editing a link
 as shown in the following image:

 [[Image(https://i.imgur.com/lq0p2kP.png)]]

 The modal-dialog is hidden by default and only visible when editing a
 link. The H1 headline-tag gets generated inside the ''wp_link_dialog()''
 function of the ''_WP_Editors'' class.

 I use the WordPress-editor inside my Asgaros Forum-plugin and got a couple
 of reports from users about this issue in the past (examples:
 [https://wordpress.org/support/topic/title-77/#post-11424938 1],
 [https://wordpress.org/support/topic/seo-hostilely-2/#post-11105219 2]).
 The main concern is that multiple H1 headline-tags may have a negative
 impact in regards to SEO.

 In my oppinion there is no good reason for using a H1 headline-tag for the
 title of this modal-dialog because it is not related to the content of the
 page. As an alternative a DIV-tag could be used instead to solve this
 issue.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46918>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list