Make WordPress Core

Opened 7 years ago

Last modified 7 years ago

#43140 new defect (bug)

WordPress does not allow HTML tags in the Name field of Links (blogroll)

Reported by: crculver's profile CRCulver Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.2
Component: General Keywords:
Focuses: Cc:

Description (last modified by swissspidy)

In WordPress 4.9.2, when creating a Link (i.e. the blogroll feature) it is not possible to wrap HTML tags around the text in the Name field: WordPress will simply display those HTML tags escaped on the website.

Being able to add HTML tags around the Name text is important because it allows specifying foreign-language names with the <span lang="XX"> tag for the sake of accessibility (screenreaders etc.) and semantic markup. My blog, for example, is in English, but some of the blogs linked to in my blogroll have foreign-language titles.

WordPress already allows adding tags like <span lang="XX"> in the Title field of new blog posts, presumably for precisely this purpose, so this feature should be made available to the Links editor as well.

Change History (4)

#1 @swissspidy
7 years ago

  • Description modified (diff)
  • Summary changed from Wordpress does not allow HTML tags in the Name field of Links (blogroll) to WordPress does not allow HTML tags in the Name field of Links (blogroll)

#2 @mdifelice
7 years ago

Hi @swissspidy, it would not achieve the same effect if you include the lang attribute in the A tag that prints the link?

#3 follow-up: @swissspidy
7 years ago

Why do you ask me? :-) I merely fixed the spelling in the ticket.

<a href="…" lang="xy">…</a> is totally fine. You don't need an additional <span> inside a link.

Note that the blogroll feature in WordPress is deprecated and as such I don't really see a point in making any changes to it. People are encouraged to use custom nav menus as they are much more flexible.

#4 in reply to: ↑ 3 @mdifelice
7 years ago

Sorry @swissspidy. I meant @CRCulver.

Note: See TracTickets for help on using tickets.