Make WordPress Core

Changeset 65820

Timestamp:
11/28/2026 11:39:34 PM (3 hours ago)
Author:
SergeyBiryukov
Message:

Tests: Cover wp_rel_callback().

Verify:

  • Adding a rel attribute to an anchor that does not have one.
  • Merging a new rel value with an existing rel attribute without duplicating existing terms.
  • Stripping nofollow when the destination URL is an internal link.
  • Retaining other rel terms (such as ugc) for internal links.
  • Handling valueless HTML attributes (such as download) on the anchor element.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/15788.

Props devmuhib, huzaifaalmesbah.
Fixes #66610.

File:
1 added

Note: See TracChangeset for help on using the changeset viewer.