docs: drop an attribute the project detail render never reads
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 file changed
+4
-2
@@ -593,7 +593,7 @@ The correct model is `chrnx_show`, not `chrnx_release`. Podcast programmes list
|
||||
|
||||
**Interfaces:**
|
||||
|
||||
- Consumes: `chrnx_get_project_links()`, `chrnx_get_topic_portrait_markup()`, `chrnx_get_heading_level()`.
|
||||
- Consumes: `chrnx_get_project_links()`, `chrnx_get_project_link_slots()`, `chrnx_get_topic_portrait_markup()`.
|
||||
- Produces: block `chrnx/project-detail`, consumed by `templates/taxonomy-chrnx_project.html`.
|
||||
|
||||
- [ ] **Step 1: Add `chrnx_project` to every taxonomy list**
|
||||
@@ -672,7 +672,9 @@ Expected: FAIL — the block is unregistered, and the archive filter test shows
|
||||
|
||||
- [ ] **Step 4: Create the block**
|
||||
|
||||
`blocks/project-detail/block.json` mirrors Task 4's JSON with `"name": "chrnx/project-detail"`, `"title": "Project Detail"`, `"description": "Cover, status, description and links for the queried project."`, and a `headingLevel` attribute defaulting to 2.
|
||||
`blocks/project-detail/block.json` mirrors Task 4's JSON with `"name": "chrnx/project-detail"`, `"title": "Project Detail"`, and `"description": "Cover, status, description and links for the queried project."`.
|
||||
|
||||
Give it `"attributes": {}`. Do NOT copy Task 4's `headingLevel` attribute: the render below emits no heading — the archive's `<h1>` comes from `wp:query-title` in the template, and status and description are paragraphs. An attribute nothing reads is dead configuration.
|
||||
|
||||
`blocks/project-detail/render.php` follows the HEAD section of `blocks/release-detail/render.php` only — its guard, its art column, and its intro column. Stop before the tracklist; do not port it.
|
||||
|
||||
|
||||
Reference in new issue
Block a user