Releases: TwistedAndy/wp-theme
Releases · TwistedAndy/wp-theme
Version 4.2
This release includes major improvements and fully refactored core libraries to improve the performance and flexibility for large-scale projects.
Key Highlights
Refactored Metadata Library
- Completely reengineered metadata API compatible with WordPress' native Metadata API
- Stores complex ACF structures (Repeater, Group, Clone) in a single database row
- Reduces database load with in-memory data preloading and cache partitioning
- Improved metadata update checks to avoid unnecessary writes
- Fully integrated with object caching for lightning-fast read/write operations
Optimized Post and Term Libraries
- New high-performance APIs for working with posts and taxonomy terms
- Bulk data retrieval eliminates N+1 query issues typically found in WordPress loops
- Smart caching of term trees, post-term relationships, and threaded taxonomies
- Instant access to post titles, term hierarchies, and post-term mappings
Advanced Asset Management
- Automatic scanning and registration of assets with dependency resolution
- Section-based style loading for cleaner, more optimized pages
- Injects critical styles and fonts directly into the head for faster rendering
- Includes automatic version control for assets to streamline development
- Asset loader built to support ACF Flexible Content previews out of the box
Version 4.1
This release introduces a new asset management and a lot of changes to the ACF integration.
Important notes:
- Styles for each block are compiled separately and automatically enqueued
- Implemented the dynamic block preview using the Flexible Content field and ACF Extended
- Changed the script initialization logic and added support for WP Rocked delayed execution
- Improved the WYSIWYG field. Now, it supports dynamic height and source code highlight
- Improved the ACF library, field compression, and migration code
- Refactored post, term, and metadata libraries
Version 4.0
This release is focused on making the code more consistent and modular. Here are some highlights:
- Classes were replaced with functions using more consistent names
- Dependencies between modules were significantly reduced
- Added support for ACF fields in product variations
- Post Loader and other modules were refactored
- Styles and scripts were also refactored
- Updated gulpfile.js and package.json