Skip to content

1.14.0 — PHP backend modularisation

Choose a tag to compare

@nickhamze nickhamze released this 25 Mar 23:54
· 96 commits to main since this release

What changed

The PHP backend has been refactored into focused, independently-testable modules — mirroring the JavaScript refactor from 1.13.0.

New PHP modules:

  • includes/sanitize.php — input sanitisation helpers
  • includes/tokens.php — token definitions and resolvers
  • includes/theme.php — theme-data helpers (palette, fonts, gradients)
  • includes/personality.php — layout personality configuration
  • includes/serialize.php — block serialisation utilities
  • includes/class-content-distributor.php — content distribution class
  • includes/class-rest-controller.php — REST route controller
  • includes/render-router.php — render dispatch table
  • includes/renderers/ — one file per layout family (columns, cover, group, heading, layout, media-text, media, pullquote, structure, text)

New JS utilities:

  • src/constants.jsALDUS_JS_VERSION and SCREEN state identifiers in one place
  • src/utils/icons.js — safe icon exports with dashicon fallbacks

Bug fixes:

  • Fixed broken docblocks (missing */) in admin-page.php
  • Added missing aldus_add_posts_column() function
  • Corrected mismatched @param tags in renderer docblocks

No user-facing changes.