WordPress.org

Make WordPress Core

Opened 2 months ago

#53734 new defect (bug)

Link rel attribute isn't shown in the input field (Widgets > Img > Anchor)

Reported by: seanvarnham Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.8
Component: Widgets Keywords: needs-patch
Focuses: ui, administration Cc:

Description

If you add a link with a rel attribute to an image in the new widgets editor, the rel input saves the value but it doesn't display the value in the input box.

To get to this issue, I added an image into a widget sidebar, clicked the link to add a link (this works fine). I then selected "Open in new tab", which worked fine, however on adding a "noopener" attribute to the rel it got to 'noopene' then on pressing 'r' the value vanishes. It seems to store the data as it appears fine in the front-end.

Attachments (2)

Screenshot 2021-07-22 at 10.07.30.png (380.1 KB) - added by seanvarnham 2 months ago.
Demonstration of the back-end result after entering rel attribute
Screenshot 2021-07-22 at 10.08.33.png (90.2 KB) - added by seanvarnham 2 months ago.
Front-end render

Download all attachments as: .zip

Change History (2)

@seanvarnham
2 months ago

Demonstration of the back-end result after entering rel attribute

@seanvarnham
2 months ago

Front-end render

Note: See TracTickets for help on using tickets.