Skip to content

Builder Meta Cleanup v2.2.1

Choose a tag to compare

@oduppinsjr oduppinsjr released this 27 May 12:37
· 24 commits to main since this release

Astra cleanup: cover astra_docs_data and the full astra_% / astra-% option families

The Astra target's option allowlist only covered the dash variants (astra-settings, theme_mods_astra) and the postmeta prefixes ast- / _astra_, so the underscore-prefixed astra_docs_data (Astra's cached help/docs payload, often 100KB+ and autoloaded) was missed. v2.2.1 extends the Astra target so it can clean the full astra_… / astra-… family.

Added

  • Astra: exact option astra_docs_data added to the allowlist.
  • Astra: options_like patterns astra_% and astra-% covering Astra Sites / Starter Templates (astra_sites_*), Astra Pro / Astra Addons (astra_pro_*, astra-addon-auto-version, etc.), and addon flag rows.

Safety

Deletion of the new exact option and both options_like patterns is still gated through options_like_choice_allowed() → is_target_active('astra'). The rows will only be offered for deletion when the Astra theme is not the active template/stylesheet.

Admin

Themes & frameworks tab → Astra now shows the new exact-option checkbox plus two pattern-based rows (astra_%, astra-%).

WP-CLI

wp builder-meta options-delete --option=astra_docs_data --yes
wp builder-meta options-like-delete --target=astra --pattern=astra_underscore --yes
wp builder-meta options-like-delete --target=astra --pattern=astra_dash --yes

Upgrade

Patch release. No configuration changes required. Sites still on Astra will see the new options listed but cannot delete them until the theme is switched, matching the rest of the plugin's behavior.