Skip to content

Run [article_title] shortcode through do_shortcode().#63

Open
mindctrl wants to merge 1 commit intoWordPress:trunkfrom
mindctrl:fix/github-edit-links
Open

Run [article_title] shortcode through do_shortcode().#63
mindctrl wants to merge 1 commit intoWordPress:trunkfrom
mindctrl:fix/github-edit-links

Conversation

@mindctrl
Copy link
Copy Markdown

@mindctrl mindctrl commented Jan 14, 2026

This needs to happen because it's all passed through sprintf, which causes the literal text to be printed instead of the shortcode output. You can see this by inspecting the footer area where the article title is supposed to render with an edit link.

image

The broken link is a separate matter, which comes down to meta key value. See WordPress/hosting-handbook#340 (comment). Question is: update the theme or fix the meta key names in wp-admin?

Edit: I'm not sure this shortcode is registered anywhere. I don't see it in the theme, and the only other place I found it to be registered is in the 2023 developer theme here: https://github.com/WordPress/wporg-developer/blob/af552d561ba3e61d913e16ae9184de1d6aeb8a1e/source/wp-content/themes/wporg-developer-2023/inc/shortcodes.php#L64

This needs to happen because it's all passed through `sprintf`, which causes the literal text to be printed instead of the shortcode output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant