mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-28 06:25:57 +01:00
Add unit tests to confirm that ---
is properly converted to —
by wptexturize()
where appropriate.
Props miqrogroove. Fixes #28483. Built from https://develop.svn.wordpress.org/trunk@28763 git-svn-id: http://core.svn.wordpress.org/trunk@28576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f7ac0eed90
commit
3b3fb72ce3
@ -274,6 +274,8 @@ function _wptexturize_pushpop_element($text, &$stack, $disabled_elements, $openi
|
||||
|
||||
array_push($stack, $matches[1]);
|
||||
}
|
||||
} elseif ( 0 == count( $stack ) ) {
|
||||
// Stack is empty. Just stop.
|
||||
} else {
|
||||
// Closing? Check $text+2 against disabled elements
|
||||
$c = preg_quote($closing, '/');
|
||||
|
Loading…
Reference in New Issue
Block a user