Repository navigation
Tests: Cover wp_rel_callback() - #15788
devmuhib009 wants to merge 2 commits into
Conversation
See #65819. Props devmuhib009.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
huzaifaalmesbah
left a comment
There was a problem hiding this comment.
Thanks for the patch, @devmuhib009! The test coverage for wp_rel_callback() looks great.
Per #65819 comment 1521, new test-only additions now need their own Trac ticket filed under the specific component rather than referencing the umbrella ticket #65819.
For wp_rel_callback() in src/wp-includes/formatting.php, the component is Formatting.
Could you please:
- Open a dedicated Trac ticket under the Formatting component with the
has-patchandhas-unit-testskeywords and link this PR. - Update the
Trac ticket:URL in this PR's description to the new ticket. - Update the
@ticket 65819annotations inwpRelCallback.phpwith the new ticket ID.
AI Review: Gemini 3.8 Flash
See #66610. Props devmuhib009.
Description
Adds unit tests for the
wp_rel_callback()function insrc/wp-includes/formatting.php.The tests cover:
relattribute to an anchor that does not have one.relvalue with an existingrelattribute without duplicating existing terms.nofollowwhen the destination URL is an internal link.relterms (such asugc) for internal links.download) on the anchor element.Test-only change.
Testing Instructions
Trac ticket: https://core.trac.wordpress.org/ticket/66610