Block viewScript and style URLs are versioned from block.json, not CHRNX_VERSION, so they kept serving cached JavaScript after the theme version moved. The theme toggle looked broken because the browser was still running the script that looked for radio inputs. All block.json versions now track CHRNX_VERSION, and a smoke test fails if any of them drift, so this cannot come back silently. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
18 lines
591 B
JSON
18 lines
591 B
JSON
{
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
"apiVersion": 3,
|
|
"name": "chrnx/featured-stories",
|
|
"version": "0.2.0",
|
|
"title": "Featured Stories",
|
|
"category": "theme",
|
|
"description": "A sticky-led selection of topic-diverse stories.",
|
|
"textdomain": "chrnx",
|
|
"attributes": {
|
|
"limit": { "type": "integer", "default": 3, "minimum": 1, "maximum": 12 },
|
|
"headingLevel": { "type": "integer", "default": 2, "enum": [2, 3, 4, 5, 6] }
|
|
},
|
|
"supports": { "html": false, "align": ["wide", "full"] },
|
|
"style": "file:./style.css",
|
|
"render": "file:./render.php"
|
|
}
|