WordPress.org

WordPress Developer Blog

What’s new for developers? (August 2024)

What’s new for developers? (August 2024)

Last month was pretty exciting with the release of WordPress 6.6 “Dorsey.” But if I’m being entirely honest, I’m a bit biased. As a themer, it was nice to see a release that was heavily focused on the theme-building experience. I’m certainly not complaining, at least.

A patch release, WordPress 6.6.1, was released a week later. It included 16 total bug fixes. So if you haven’t upgraded already, now is a good time to do so.

Now it’s time to set our eyes forward and start focusing on WordPress 6.7 and beyond. This monthly edition won’t be as exciting as some because the release cycle is just getting underway, but there are already some nice quality-of-life improvements included in the latest Gutenberg plugin.

As always, this post will contain a list of development-related changes from the past month. Most of them are only included in WordPress trunk or Gutenberg 18.8 and 18.9.

Highlights

Learn WP redesign

Learn WordPress recently launched with a spiffy new design. It’s a refreshing overhaul that brings it inline with other design updates for WordPress.org, making it easier to navigate based on what type of WordPress user you are.

Read more about the update via these two announcements:

And while you’re perusing the site, be sure to check out the new Intermediate Theme Developer Course.

Offline mode and PWA support for Playground

WordPress Playground now supports “offline” mode, which means that when you visit playground.wordpress.net, the data for your Playground instance will be cached in your browser. This means that you can continue working on your project even without an active internet connection.

You can also install Playground on your device and launch it as a Progressive Web App (PWA). This means that you can open Playground directly from your device’s home screen, just like any other app.

Read more about these features and their limitations in the announcement post.

Loads of extra block supports

Contributors have been actively polishing the design experience by fleshing out the design tool support for various Core blocks. The following table lists which blocks have been updated in Gutenberg 18.8 and 18.9 and which feature support was added:

BlockFeature Support
Buttonsborder, color, padding
Galleryborder
Groupshadow
Headingborder
Imagemargin
Latest Commentscolor
List Itemcolor
Media & Textborder
Paragraphborder
Quoteborder, spacing
Searchmargin
Social Linksborder
Term Descriptionborder

Plugins and tools

Define block variations via a file

Gutenberg 18.8 introduced support for referencing a PHP file in block.json for registering block variations. To do this, you must assign the file path as a value for the variations property:

{
	"variations": "file:./variations.php"
}

Previously, you could only define a variations JSON object, but this change lets you register the variations on the server-side. The PHP file must return an array of variations to register.

New DataForm API

Gutenberg 18.8 introduced a new DataForm API, which is a part of the larger effort to reduce duplicated form code with Data Views. Currently, the new API is only used for the duplicate page action in the Site Editor.

Experimental local attributes

A new local value is now supported for the __experimentalRole property when defining a block attribute, essentially allowing temporary attributes. The current use, introduced in Gutenberg 18.8, adds a method of storing temporary URLs for images as they are uploaded (it’s possible for a user to save before an image is fully uploaded).

Block Bindings API updates

A few changes have landed in the last couple of Gutenberg releases for handling block bindings and custom fields:

Component updates

Several Core components received minor updates in the last couple of releases of Gutenberg:

Themes

Background image attachment support added

You can now define background-attachment values for blocks that support background images. In the UI, this appears as a toggle switch to enable a fixed background (the default would be scroll). You can also set this for background images defined in theme.json via the background.backgroundAttachment style property.

Query Loop block inheritance updates

Several changes in Gutenberg 18.9 sought to correct how inheritance works when using the Query Loop block:

New UI for editing font-size presets

Font sizes defined by the theme can be edited via the Styles UI as of Gutenberg 18.9. For the most part, this is a user-facing change, but it’s also useful if you prefer to build block themes from the Site Editor.

Root padding style fix for wide-aligned blocks

During the WordPress 6.6 beta, an issue with root/global padding was introduced that omitted the padding from nested blocks with wide alignment. This was fixed in Gutenberg 18.8 and backported to WordPress 6.6.

Global styles updates and fixes

A couple of late fixes were backported to WordPress 6.6 and 6.6.1 to fix issues with changes found during or after the previous release cycle:

Other notable bug fixes

There are also several noteworthy fixes that should improve your theme design experience:

Resources

Learn WordPress

Alongside the overhauled redesign of the Learn WordPress site, there is a brand new course this month:

Developer Hours and Hallway Hangouts

Two live sessions were held in the last month covering topics for both plugin and theme developers:

Developer Blog

If you haven’t already read them, now is a good time to check out the latest blog posts right here on the Developer Blog:

Props to @bph for co-wrangling these resources and @ndiego and @welcher for feedback and review on this post.

2 responses to “What’s new for developers? (August 2024)”

  1. Lyra Halkdar Avatar
    Lyra Halkdar

    This new update has caused over 250 of the 1000 sites we build and host to crash our elementor headings. When will this be addressed, i have seen no media coverage and i feel like this is a pretty big issue this update has caused. I am positive that they company i work for is not the only one facing this issue

    1. Birgit Pauli-Haack Avatar

      Hi Lyra, sorry you had a unpleasant experience with the latest update in WordPress. With the help of Elementor developers, there was a fast minor release to fix the bug, you might be referring to. Did you update to 6.6.1 yet? Also, today, the core team is working on the release candidate for 6.6.2 that also has a few bug fixes that might help.

      Each WordPress version goes through a prolonged release cycle. Between Beta 1 and final release there are 4 to 5 weeks, where site maintainers, agency developers, site owners and product developers are asked to test the upcoming release and share problems, so bugs are found early and usually are fixed before the final release. If you want to avoid being surprised by a WordPress release again, I would suggest using a test 1environment and helping the core contributors to test with your specific site configuration. WordPress 6.7 Beta 1 will come on on October 1st. You can find the full release cycle schedule on this page.

Leave a Reply

Your email address will not be published. Required fields are marked *