Municipio 5.3.3

SNT
Sebastian Nordqvist Thulin

Municipio 5.3.3 is a patch release, fixing som minor bugs in previous release.

Component Library (4.54.6)

  • Fixes
    • Corrected sanitization of HTML IDs in the BaseController to prevent potential rendering issues.
    • Fixed aspect ratio issues for term icons to ensure consistent display.
    • Resolved a styling issue related to typography when using shortcodes in context.
  • Improvements and Refactoring
    • Refactored slider button functionality for better clarity and maintainability.
    • Removed unnecessary constructor requirement from ImageFocusResolverInterface, simplifying its implementation.

Algolia Index JS Searchpage (3.3.4)

  • Added a new Typesense adapter for search. This allows integration with the Typesense engine for improved relevance and performance.
  • Added additional domains to the Content Security Policy (CSP) configuration to ensure required external services are allowed and function correctly.

Alarm Integration (4.0.11)

  • Adds the ability to display a automatic fire alarm banner on each page when a fire alarm is set to high.

Modularity Like Posts (2.14.4)

  • Fixes and Improvements
    • Prevented sticky posts from being retrieved when not intended.
    • Fixed an issue where only allowed post types should be set, improving data safety and accuracy.
    • Improved markup handling to prevent rendering issues in views.
    • Fixed a bug where passing an empty list of posts could cause Blade template errors.
    • Removed unnecessary data like blogId from being passed to views.
    • Cleaned up legacy code, including the removal of unused getPost() calls and debug statements.
  • Refactoring
    • Improved support for handling private posts across multiple blogs, ensuring better cross-site privacy control.
    • Refactored list and collection views for better performance and maintainability.
    • Replaced internal permalink logic with getPermalink() for consistency.
    • Streamlined post type validation logic and corrected blogId usage.
  • Housekeeping
    • Added inline code comments for clarity.
    • Removed outdated or redundant code and comments.

Wp Security (1.6.10)

  • New Features
    • Split the logic into separate resolvers for improved structure and maintainability.
    • Introduced support for a CSP (Content Security Policy) hook, allowing more flexible CSP configuration.
    • Added support for the Permissions Policy header, enhancing browser-level security controls.
    • Introduced PHP-based test suite and build validation for improved development workflows.
  • Fixes and Improvements
    • Improved DOM parsing to better detect and extract relevant elements, including images inside <script> tags.
    • Better handling of inline scripts and validation through updated test coverage.
    • Simplified and cleaned up test cases, including updated fixtures and attribute handling.
    • Improved normalization of parsed content through a new internal normalizer.
    • Enhanced filtering of specific element types and attributes.
    • Adjusted how <a> tags are handled (now included, but without using the href value).
    • Resolved issues with malformed attributes, DOM element checks, and parsing edge cases.
    • Allowed the use of unsafe-eval in scripts where needed (e.g., to avoid CSP conflicts).
    • Added filter support and documentation updates to allow better customization of CSP behavior.
    • Multiple minor fixes and code cleanup tasks (e.g., typo corrections, gitignore updates, and internal consistency).
  • Documentation
    • Updated README and added internal comments for clarity and maintainability.

Modularity (6.87.7)

  • New Features
    • Added user group visibility restrictions for posts, allowing better access control for different audiences.
    • Introduced a new hero layout for enhanced content presentation.
    • The posts module now uses a dedicated image retrieval method to ensure more consistent and accurate image handling.
  • Fixes and Improvements
    • Fixed an issue where pagination would fail in post modules.
    • Corrected post status filtering to ensure all relevant posts are included.
    • Fixed a bug where mocked user IDs were used instead of real logged-in user IDs.
    • Resolved a missing blog name in the news list view.
    • Sticky posts are now correctly prioritized in multisite queries.
    • Sanitized post excerpts by removing unwanted <a> tags.
    • Corrected date comparisons by using the GMT version of post dates.
    • Fixed malformed URLs when filtering in post archives.
    • Addressed a crash issue in the language detector for large modules.
    • Fixed CSV module update failures.
    • Corrected shortcode context detection for component rendering.
  • Refactoring and Styling
    • Updated file list item styles to use the heading font.
    • Switched input type to “search” and added a corresponding icon for better UX.
    • Refactored Splide slider custom button implementation for improved maintainability.
  • Development & Dependency Updates
    • Upgraded league/commonmark package for compatibility and security.
    • Updated the ACF service dependency to version 1.1.0.

Municipio Theme (5.156.4)

  • New Features
    • Table of Contents (ToC): A new ToC feature automatically creates a clickable index of the current page, improving navigation for long content.
    • Error Page Customizer: A dedicated Customizer section for 401, 403, and 404 error pages has been added. You can now customize the heading, subheading, image, buttons, and choose whether to show the error code in the background.
    • Schema-specific Field Control: It’s now possible to disable standard fields on specific schema types for a cleaner editing experience.
    • Post Image Retrieval Method: A new method has been added to retrieve images directly from post objects, ensuring more reliable rendering.
  • Fixes and Improvements
    • Image Rendering Across Blogs: Images fetched from another blog now correctly resolve their sizes, resulting in sharper, properly scaled images when shared between sites.
    • WYSIWYG Image Replacement: When replacing images in rich text content (WYSIWYG), the clickable link is now preserved, maintaining accessibility and interactivity.
    • Breadcrumbs Accuracy: Improved detection of archive pages, ensuring breadcrumb navigation shows the correct paths.
    • Menu Item Children Indicator: Menu items with children now show the correct visual indicators.
    • Hidden Menu Pages for Logged-in Users: Fixed an issue where menu items for hidden pages were incorrectly visible to authenticated users.
    • Navigation JavaScript Settings: Improved handling of nonce values for safer navigation scripting.
    • TinyMCE Plugin Fix: Resolved an issue preventing external plugins from loading in the content editor.
    • YouTube Link Consistency: YouTube URLs now default to using the www. domain to improve reliability.
    • Breadcrumb Archive Links: Fixed issues where links in breadcrumb trails to archive pages did not work as expected.
    • Mirrored Posts: Fixed a bug where mirrored posts (e.g., from multisite setups) did not show their featured images.
    • Embed Caching: oEmbed cache is now cleared properly when needed, reducing stale previews.
  • Developer and Internal Enhancements
    • Image Conversion and Transparency Fix: A workaround has been implemented for a known bug in ImageMagick. When converting PNGs, the system now prioritizes the GD library to preserve alpha transparency.
    • Improved Image Conversion Performance: More memory and processing time is now requested when converting large or complex images, helping prevent crashes during image handling.
    • Simplified Heading Styles: Removed the ability to set different heading styles per module/component. This was rarely used and simplifies customization.
    • Customizer Cleanup: Refactored customizer components, especially around the card and layout sections, for better structure and maintainability.
    • Build Tools Update: Updated browsersync and webpack-dev-server packages for a more stable and modern development environment.
    • Codebase Refactoring: Significant refactoring efforts made to the Table of Contents feature and post decorators, improving maintainability and aligning with best practices.
    • Test Maintenance: Several tests have been marked as incomplete in preparation for a broader refactor.

Other

  • Adds the ability to start municipio in franken PHP/Caddy. Also adds the ability to qucikstart with SQLite server.