WP HTML Blocks – Changelog
WP HTML Blocks — Changelog (EN-US)
**0.3.3 (hotfix 2) — 2025-09-10**
* **Admin – Permalink UI (WPBakery + Homepage)**
* Fixed: in some cases the *Permalink* shown in the page editor could switch to an **HTML Block** URL after saving a WPBakery element or when editing a page set as the **static Homepage**.
* Root cause: $post pollution during builder/bootstrap queries.
* Fix:
– Hardened all admin queries that list HTML Blocks with suppress_filters => true **and** an explicit wp_reset_postdata() afterwards (affects WPBakery/Gutenberg/admin helpers).
– Added an admin-only guard on load-post.php that restores the correct global $post (based on $_GET['post']) for all edit screens **except** the HTML Block CPT—so the Permalink bar always reflects the current page/post.
* **Safety**
* No front-end changes. Rendering stays **1:1** with block content; multiple instances remain conflict-free.
**0.3.3 (hotfix) — 2025-09-09**
* **Admin – Modals**
* Fixed: the three per-block modals (**Shortcode / Hooks / Rules**) open and close correctly.
* Root cause: missing/incorrect helper class; introduced **WHB_Rules** (used by whb-rules.js) so options populate as expected.
* **Admin – Metabox**
* The **“Shortcode / Hooks / Rules”** metabox on the single block now shows the same controls as the list view (same selectors/classes → AJAX save works).
* Mobile usability: inputs/selects are full-width so all options are visible on small screens.
* **Hooks (docs)**
* Corrected virtual hook names used across the UI/docs:
– whb_page_start *(fires at wp_body_open)*
– whb_page_middle *(fires after the main loop)*
– whb_pre_footer *(fires before the theme footer)*
* Previous docs mistakenly referenced whb_page_top / whb_mid_content.
* **Safety**
* No front-end style changes. Output remains **1:1** with the block content. Multiple instances remain conflict-free.
**0.3.3 — 2025-09-08**
* **Hooks (virtual)**
* Added three virtual hooks you can target from the admin:
whb_page_start (fires at wp_body_open), whb_page_middle (after main loop), whb_pre_footer (before footer).
Useful for placements like AdSense, callouts, CTAs, etc. Multiple instances are supported; no global styles added.
* Exposed these hooks in the **Hooks** dropdown (admin list + single metabox).
* **Widget**
* New native widget **“WP HTML Block”** for sidebars. Select any existing block and render it in widgetized areas.
* **Compat / Safety**
* Mid-content injection runs only on singular views of the main loop and avoids duplication on the same post render.
* Output remains **1:1** with the block content; no extra CSS is injected by the plugin.
**0.3.2 — 2025-09-08**
* **Gutenberg**
* Editor preview now renders the **actual block output** using ServerSideRender, matching the front-end.
* Backend-only safeguard: **WPBakery per-post CSS injection is disabled in editor rendering** to avoid styling conflicts (front-end behavior unchanged).
* Dropdowns show **block titles** in the inspector (not IDs) for clearer selection.
* **Admin**
* Migrated single-row options to **three modals** (Shortcode / Hooks / Rules).
* Added **Single block options** metabox.
* Display **selected block name** in backend views.
* Fix: modal **close icon** now works reliably.
* **Render**
* **1:1 output** across admin preview and front-end; safe to use **multiple instances** of the same block on a page.
* **Disabled auto-paragraphs by default**; introduced autop attribute (0|1|auto).
* **Removed**
* **Inline WPBakery CSS toggle** from public settings; CSS is injected automatically only when needed.
* **Docs**
* Refreshed README.
**0.3.1 — 2025-09-03**
* Admin UI: responsive layout for shortcode/hooks/rules quick actions.
* Fix: resolved parse error in class-whb-render.php.
* Misc: small hardening and code comments.
**0.3.0 — 2025-09-02**
* Assets: enqueue/register fixes to comply with WP hooks.
* Shortcode: safer builder detection and edge-case handling.
* Cache: internal TTL and invalidation tweaks.
**0.2.1 — 2025-09-01**
* Includes/paths adjustments; minor stability fixes.
* Admin: first iteration of copy-ready columns.
**0.2.0 — Initial**
* CPT + shortcode + Gutenberg/Elementor/WPBakery integrations.
* DB cache for rendered HTML.
* I18n base files.