WordPress 4.5, “Coleman”, released

WordPress 4.5, “Coleman”, has just been released. It's named, as always, after a famous jazz musician, and this release is named after Coleman Hawkins, a saxophonist.

TheĀ Release Lead for WordPress 4.5 was Mike Schroder, the Deputy Release Lead was Adam Silverstein, and the Release Design lead was Mel Choyce, with 277 total contributors.

Here's a video overview of WordPress 4.5:


You can view all closed tickets for WordPress 4.5, and view an evolving overview of changes on the 4.5 Codex page as well. I thought I would also highlight some of the most notable features (in my view) as well.

CustomĀ logo

logo-core

The site icon feature was released in WordPress 4.3, and for some folks, the introduction of a customĀ logo component was confusing. However, eventually, the user experience issues were ironed out and WordPress 4.5 boasts the ability to add logos with core support, and themes can support the feature withĀ add_theme_support( 'custom-logo' ).

CustomĀ logo support is a nice addition that was pretty well tested in Jetpack already. There were way too many custom implementations of this out in the wild before, and now changing themes and keeping your logo will be much more straightforward.

Editing shortcuts

 

Editing shortcuts is my personal favoriteĀ change in WordPress 4.5 because it adds the ability to use inline text patterns for quicklyĀ writing lists, horizontal rules, and code. These are some of the most annoying TinyMCE buttons to use or HTML markdown bits to write, so this isĀ definitely be a nice enhancement to the WordPress editor.

The editing shortcuts from this release and the past few releases are some of my favorite updates for everyday WordPress writers.

Inline link editor

Screen Shot 2016-04-12 at 2.11.43 PM

The inline link editor is the secondĀ of two significant editor changesĀ in WordPress 4.5, to utilize a tooltip-style overlay for adding links, versus a modal dialogue.

It's a relatively minor UX change, and I personally prefer just highlighting the text to add a link to and using a keyboard paste command, but for folks using the traditional link button, this offers a less obtrusive experience.

Selective Refresh

The selective refresh feature plugin for the customizer aimed to create aĀ better customizer experience. Weston Ruter summarized the feature on Make Core, and describes its functionality in depth. He also hints at what it makes possible.

Currently, postMessage enables live changes, but saving those changes requires a full page reload. postMessage doesnā€™t do any server side communication. Selective refresh enables server side communication (aka allows for actual saving of changes) and the ability to view changes without a full page reload.

The code that is now a framework for selective refreshing started with the move of nav menus and widgets to the customizer:

With theĀ shipped example of selective refresh ofĀ nav menus in theĀ Customizer, and an initial implementation ofĀ selective refresh for widgets, work progressed to generalize a selective framework that would support the complicated examples ofĀ nav menus and widgets, but also to support simpler use cases such as letting the server render the updated site title so that wptexturize and other filters can apply. The generalized framework has been implemented in the CustomizeĀ Partial Refresh feature plugin, which also re-implements selective refresh of nav menus and introduces selective refresh of sidebars and widgets.

However, Weston buried the lede for what makes Selective Refresh awesome.

As he notes toward the end of the post on Make WordPress Core, the selective refresh component doesnā€™t just allow for site changes within the customizer, but for customizer controls to be called from the site.

Itā€™s worth describing what partials are in this context, for those (like me) that arenā€™t into the nitty gritty of the customizer:

This plugin introduces a selective refresh framework which centers around the conceptĀ of the partial. A partial is conceptually very similar to a Customizer control. Both controls and partials are associatedĀ with one or more settings. Whereas a controlĀ appears in theĀ pane, theĀ partial livesĀ in the preview. The fields in a control update automatically to reflect the values of its associated settings, and a partial refreshes in the preview when one of its settings isĀ changed.

Andā€¦

In addition to a partial being associated with one or more settings, a partial is also registered with a jQuery selector whichĀ identifies the partialā€™s locations or ā€œplacementsā€ on the page, where the rendered content appears.

With selective refresh, an interface could be created within placements themselves to give focus on the associated control; but the whole customizer isnā€™t required, and just the control thatā€™s needed can pop out. As Weston putĀ it, ā€œThat is to say, selective refresh makes the Customizer a much better framework for implementingĀ frontend editing.ā€

And that, in addition to selective refresh itself, is awesome.

Better image compression

By default, WordPress has always compressed images upon upload. By making a small change in the compression percentage, from 90% to 82%, WordPress can enable, “reduced image sizes by an average of ~25%.”

Additionally, unnecessary meta data in photos is removed automatically by WordPress, while still maintaining the meta data photographers actually use.Ā So all in all, images in WordPress can be cut in size by half without losing detail, and that's amazing.

Log in by email

This has long been a desire for WordPress installs, and there have been plugins to help accomplish it, but now it's in core as it should be.

Quite simply, users can now log in via their username, or their active email address. Thank goodness — this is a nice UX enhancement.

Of course there are more

These are the features I wanted to note, but there are many others, as always, that took a lot of effort and greatly improve WordPress core. Others to consider are responsive customizer views; core library updates for Backbone, jQuery, and others; and oEmbed template management (which is really slickly done).

For more information, be sure to see the developerĀ field guide for WordPress 4.5, as well as a 4.5Ā support guide, and the official release post.

Similar Posts