Rank Math moves _wp_render_title_tag off wp_head into its own rank_math/head block, but it does not know about the block-theme renderer that replaced it, so both rendered. The previous release removed the block renderer and kept the relocated one, which fixed the duplicate but left the page depending on a plugin that may print nothing at all: Rank Math skips its entire frontend until its setup wizard completes, and in that state the page had no <title> and no social tags. Remove the relocated copy instead. Both carry the same text, since Rank Math supplies it through pre_get_document_title, and the block renderer survives when the plugin is absent or silent. The removal needs no guard: with no Rank Math, rank_math/head holds no callbacks. For the same reason chrnx_has_seo_plugin() now asks whether an SEO plugin actually printed its head, not whether one happens to be installed. Verified against a real Rank Math install in all three states: emitting, installed but silent, and absent. One title every time, never zero. The subscribe call to action now also runs on Pages and archives, so the Journal and the topic archives can convert, and it skips the Subscribe page itself rather than linking there from there. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
22 lines
842 B
JSON
22 lines
842 B
JSON
{
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
"apiVersion": 3,
|
|
"name": "chrnx/related-posts",
|
|
"version": "0.4.2",
|
|
"title": "Related Posts",
|
|
"category": "theme",
|
|
"description": "Related stories selected by topic, tags, and recency.",
|
|
"textdomain": "chrnx",
|
|
"usesContext": ["postId", "postType"],
|
|
"attributes": {
|
|
"limit": { "type": "integer", "default": 3, "enum": [3, 5] },
|
|
"layout": { "type": "string", "default": "adaptive", "enum": ["adaptive", "grid", "carousel"] },
|
|
"headingLevel": { "type": "integer", "default": 2, "enum": [2, 3, 4, 5, 6] }
|
|
},
|
|
"supports": { "html": false, "align": ["wide", "full"] },
|
|
"editorScript": "file:../../assets/js/editor-related-posts.js",
|
|
"viewScript": "file:../../assets/js/related-posts.js",
|
|
"style": "file:./style.css",
|
|
"render": "file:./render.php"
|
|
}
|