Commit 3dde337
committed
fix(compliance): avoid false positive on button width check when wp:button and wp-block-buttons share a line
checkButtonWidthClasses used str_contains($html, 'wp-block-button') which
matched the plural wp-block-buttons wrapper div when it appears on the same
line as the <!-- wp:button comment (correct compact inline formatting per
Elayne CLAUDE.md). Replaced with a word-boundary regex so only the singular
wp-block-button inner div triggers the class check.1 parent 97f4cb6 commit 3dde337
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
265 | 268 | | |
266 | 269 | | |
267 | | - | |
| 270 | + | |
268 | 271 | | |
269 | 272 | | |
270 | 273 | | |
| |||
0 commit comments