Repository navigation
Commit c249294
Cover the block version guards on WordPress 4.9
The functional test matrix runs WordPress 4.9, so the `wp post has-block`
guard can be asserted directly. The scenario also pins the deliberate
asymmetry between the two subcommands: `wp post has-blocks` keeps working
because it goes through the bundled WP_Block_Processor polyfill, while
`wp post has-block` depends on the WordPress 5.0 `has_block()` function and
now reports that requirement instead of fataling.
The WordPress 5.3.1 `serialize_blocks()` guard cannot be covered the same
way. It only triggers between WordPress 5.0 and 5.3.0, and the matrix runs
4.9, 6.9, latest and trunk, so a scenario for it would never execute.
Co-authored-by: Pascal Birchler <pascal.birchler@gmail.com>1 parent f7441a8 commit c249294
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
50 | 71 | | |
51 | 72 | | |
52 | 73 | | |
| |||
0 commit comments