Skip to content

Fix/admin Settings Assets#4

Merged
jasperf merged 2 commits into
mainfrom
fix/admin-settings-assets
Jul 13, 2026
Merged

Fix/admin Settings Assets#4
jasperf merged 2 commits into
mainfrom
fix/admin-settings-assets

Conversation

@jasperf

@jasperf jasperf commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Version: 2.9.2

The Settings → Aludra admin screen rendered as an unstyled checkbox list because its CSS and JS never loaded, and several smaller admin UI and documentation issues had accumulated. This is a patch release focused entirely on repairing the admin experience — no new functionality.

Bug Fixes:

  • Admin assets 404'd. plugins_url() was called with a directory path (__DIR__ . '/../..') instead of a file path, producing a URL with a stray ../ that resolved to the wrong location. Switched to ALUDRA_PLUGIN_URL so admin-settings.css / admin-settings.js load correctly.
  • Child-row indentation never applied. The Settings API renders data-parent on the <input>, not the <tr>, so the tr[data-parent] CSS selector never matched. Child rows (Slide, FAQ Tab Answer) are now tagged with an aludra-child-row class in JS and indented via that class.
  • Enable All / Disable All skipped dependency styling. Both buttons now call handleDependencies() so child-block disabled-state styling stays in sync.
  • Incomplete frontend enqueue default. The wp_enqueue_scripts aludra_enabled default listed only carousel, out of sync with the full 13-block block-discovery default. On a fresh install (before the option is saved) this could skip loading Testimonial Grid assets. The two defaults now match.

Documentation and Version Updates:

  • Removed stale references to the unimplemented aludra/nav-builder block (in CLAUDE.md and readme.txt) — Mega Menu can only be placed inside core/navigation.
  • Updated CLAUDE.md and the plugin description header to reflect the full current block list (13 blocks, not 6).
  • Bumped to 2.9.2 across aludra.php, readme.txt, and CHANGELOG.md.

Files Changed:

jasperf added 2 commits July 13, 2026 12:56
The plugins_url() call in aludra_enqueue_admin_assets() passed a
directory path instead of a file path, so admin-settings.css/js never
actually enqueued and the Settings -> Aludra page rendered as a bare,
unstyled checkbox list. Also fixes the child-row indentation CSS
selector (data-parent lives on the input, not the tr), restores
dependency styling after "Disable All", and corrects an incomplete
settings default used for carousel/testimonial-grid asset loading.

Removes stale references to the never-implemented aludra/nav-builder
block and updates the documented block count/list to match the 13
blocks currently shipped.

Bump version to 2.9.2.
@imagewize imagewize deleted a comment from github-actions Bot Jul 13, 2026
@github-actions

Copy link
Copy Markdown

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@jasperf jasperf merged commit ef15dd1 into main Jul 13, 2026
2 checks passed
@jasperf jasperf deleted the fix/admin-settings-assets branch July 13, 2026 06:05
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