Repository navigation
Tests: Cover translate_smiley() - #15789
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 working on this, @devmuhib009! Clean coverage for translate_smiley() and smiley replacement markup.
Per #65819 comment 1521, test-only changes now need their own Trac ticket by component instead of #65819.
For translate_smiley() in src/wp-includes/formatting.php, the component is Formatting.
Could you please:
- Open a new Trac ticket under Formatting with the
has-patchandhas-unit-testskeywords and link this PR. - Update the
Trac ticket:reference in this PR's description. - Update the
@ticket 65819annotations intranslateSmiley.phpwith the new ticket number.
AI Review: Gemini 3.8 Flash
See #66611. Props devmuhib009.
Description
Adds unit tests for the
translate_smiley()function insrc/wp-includes/formatting.php.The tests cover:
<img>element with proper attributes (class="wp-smiley",alt,style, andsrc).smilies_srcfilter.Test-only change.
Testing Instructions
Trac ticket: https://core.trac.wordpress.org/ticket/66611