Commit 36ebba8
committed
Fix broken comments controller test: wp_replace_in_html_tags()
Was detecting a non-escaped `<` as the start of an “element” and
then replaced a newline in the text as `<!-- wpnl -->` since it
thought it was replacing inside a tag. In the end that translated
into a raw `\n` again in the end.1 parent 7bec60e commit 36ebba8
1 file changed
Lines changed: 20 additions & 7 deletions
Lines changed: 20 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3110 | 3110 | | |
3111 | 3111 | | |
3112 | 3112 | | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
| 3121 | + | |
| 3122 | + | |
| 3123 | + | |
| 3124 | + | |
| 3125 | + | |
3113 | 3126 | | |
3114 | 3127 | | |
3115 | 3128 | | |
3116 | | - | |
3117 | | - | |
3118 | | - | |
| 3129 | + | |
| 3130 | + | |
| 3131 | + | |
3119 | 3132 | | |
3120 | 3133 | | |
3121 | 3134 | | |
3122 | 3135 | | |
3123 | | - | |
3124 | | - | |
| 3136 | + | |
| 3137 | + | |
3125 | 3138 | | |
3126 | | - | |
3127 | | - | |
| 3139 | + | |
| 3140 | + | |
3128 | 3141 | | |
3129 | 3142 | | |
3130 | 3143 | | |
| |||
0 commit comments