WordPress Developer Blog

What’s new for developers? (June 2024)

What’s new for developers? (June 2024)

We’re getting closer to  WordPress 6.6 and there have been lots of updates as we move toward the planned release date on July 16, 2024.

The release teams have been busy with the WordPress 6.6 Beta 1 on June 4 and the WordPress 6.5.4 maintenance release a day later. If you haven’t already, be sure to update to the latest version of WordPress.


Let’s take a look at the changes for June. As usual, make sure to test the below changes against WordPress trunk and the latest version of the Gutenberg plugin. The main goals of these monthly roundups are to help you stay updated and prepare for the next WordPress release.

Highlights

Block bindings

There have been some very exciting updates to the Block Bindings API in the past few weeks that make working the block bindings more intuitive.

React and JSX changes in WordPress 6.6

WordPress 6.6 will ship with React 18.3, which is identical to 18.2 but adds warnings for deprecations and other changes to help developers prepare for the React 19 upgrade once it becomes stable. Additionally, WordPress 6.6 will allow developers to use the new React JSX transform that was first released in React 17. This change has some potential to break some existing build processes, so be sure to read the full dev note and test thoroughly before updating dependencies.

Plugins and tools

Data Views

The work on Data Views is moving forward and there is conversation on how to handle extensibility. This is the perfect time to get involved with how you will be able to extend and use this feature so be sure to stay up to date on this!

Block variations

Work has been done to improve how to determine if a block variation is active.

Interactivity API updates

The Interactivity API has seen some really nice developer-focused updates that will be available with WordPress 6.6.

New components and block supports

Replicating rich text pasting behavior in custom blocks is now easier via the new supports.splitting block setting. When it is enabled and content is pasted inside the block, it will split your block in two, insert the content, and then merge the ends together.

REST API

Extenders can now include /wp/v2/users routes when making a batch API request allowing batch changes to users.

Other noteworthy changes

Themes

Consistent root padding for patterns

Historically, theme patterns needed to have hard-coded values for left and right padding to ensure they render correctly no matter where they were used. With Gutenberg 18.5, the root padding implementation has been updated to no longer need this and make padding more consistent across the board. This change has the potential to break some existing designs, so be sure to test your patterns.

Block changes

There have been some nice updates to a few blocks in the last few versions of Gutenberg:

Theme.json updates

Background image updates

Some more updates to this feature have been completed as part of the Gutenberg 18.5 release:

  • Image paths can be defined as a URL or as a relative path using file:./ in the same way local fonts are defined. 
  • Images that have been set via theme.json can be removed or changed in the Site Editor in the Styles > Layout area.
  • Background images set from the media library and set to Tile are given some default position values to increase the chance the image’s focal point is seen.

Manage shadows from global styles

Gutenberg 18.5 adds the ability to create and edit shadows from the Global styles panel.

Moving towards section styling

As part of the effort to add section styling to WordPress 6.6, Gutenberg 18.4 introduced a new global function that allows extenders to pass a list of blocks to associate the registered style with. Similarly, block style variations were also extended in Gutenberg 18.5 as a mechanism for achieving section styling

Other notable changes

Resources

WordPress News

The main WordPress News blog published a single article that is great for anyone trying to improve their WordPress skills.

Developer Hours

There were two new Developer Hours this past month that covered some interesting topics: using alternatives for custom meta boxes and WordPress Playground blueprints. Both are available on YouTube,

Developer Blog

The Developer Blog saw two new articles this month with more on the way. Be sure to check these out when you can!

Props to @greenshady, @ndiego, and @juanmaguitar for reviewing this post.

Categories: , ,

Leave a Reply