Repository navigation
Tests: Cover wptexturize_primes() - #15740
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 coverage for primes and quote disambiguation is great.
Per #65819 comment 1521, all new test-only additions now need their own Trac ticket filed under the specific component rather than referencing the umbrella ticket #65819.
For wptexturize_primes() 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. - Update the
@ticket 65819annotations inwptexturizePrimes.phpwith the new ticket ID.
AI Review: Gemini 3.8 Flash
See #66609. Props devmuhib009.
Verify: - Replacing single quotes with single prime entities (`′`) following numbers. - Replacing double quotes with double prime entities (`″`) following numbers. - Ensuring strings without target quotes remain unmodified. - Disambiguating quotes and primes within opened quotation marks. - Ensuring regular quotes not preceded by numbers become closing quotes. Developed in #15740. Props devmuhib, huzaifaalmesbah. Fixes #66609. git-svn-id: https://develop.svn.wordpress.org/trunk@65809 602fd350-edb4-49c9-b593-d223f7449a82
Verify: - Replacing single quotes with single prime entities (`′`) following numbers. - Replacing double quotes with double prime entities (`″`) following numbers. - Ensuring strings without target quotes remain unmodified. - Disambiguating quotes and primes within opened quotation marks. - Ensuring regular quotes not preceded by numbers become closing quotes. Developed in WordPress/wordpress-develop#15740. Props devmuhib, huzaifaalmesbah. Fixes #66609. Built from https://develop.svn.wordpress.org/trunk@65809 git-svn-id: http://core.svn.wordpress.org/trunk@64838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Description
Adds unit tests for the
wptexturize_primes()function insrc/wp-includes/formatting.php.The tests cover:
′).″).Test-only change.
Testing Instructions
Trac ticket: https://core.trac.wordpress.org/ticket/66609