WordPress 5.4, released March 31 2020, is primarily an editor release — the focus is on Gutenberg improvements that have been cooking in the plugin for months. It’s a significant update for developers and content creators alike.
Block Patterns
Block Patterns are pre-designed combinations of blocks that editors can insert with one click. WordPress 5.4 ships with a set of built-in patterns; developers can register their own:
add_action( 'init', function() {
register_block_pattern(
'mytheme/hero',
[
'title' => __( 'Hero Section', 'mytheme' ),
'description' => __( 'A full-width hero with heading and button.', 'mytheme' ),
'content' =>
'<!-- wp:cover {"align":"full"} -->
<div class="wp-block-cover alignfull">
<!-- wp:heading --><h2>Your Heading</h2><!-- /wp:heading -->
</div>
<!-- /wp:cover -->',
]
);
} );
Social Links Block
A new Social Links block ships in core, supporting over 30 social platforms. It renders accessible icon links and respects the active theme’s colour palette. Developers can register new social services via the social-links block transforms.
New Block in 5.4
- Buttons block — a container for multiple Button blocks, replacing the single-button limitation
- Query Loop block (experimental) — native post listing without custom PHP
- Improved cover block gradient controls and focal point picker
REST API Additions
5.4 adds a /wp/v2/blocks endpoint for reusable blocks and a /wp/v2/block-patterns endpoint. Both are useful for building custom Gutenberg-powered admin interfaces.
Performance
The Gutenberg editor loads significantly faster in 5.4 — the team reduced the editor JavaScript bundle size and deferred non-critical scripts. On a standard test post with 15 blocks, Time to Interactive improved by ~30% compared to 5.3.
Upgrading
5.4 requires PHP 5.6.20+ (though PHP 7.4 is strongly recommended) and MySQL 5.0+. Test in a staging environment, especially if you use third-party blocks — some older block plugins may conflict with the pattern registry API.
WordPress 5.4 continues the steady march toward Full Site Editing. Developers who invest in the Block API now will be well-placed when FSE lands in a future major release.