WordPress 4.9 Released with Major Improvements to Customizer Workflow, Updated Code Editors, and New Core Gallery Widget

WordPress 4.9 “Tipton” was released today, named for Oklahoma-born jazz musician William Lee Tipton, a gifted pianist and saxophonist. This update introduces major improvements to the design and collaboration workflow in the Customizer, improves WordPress’ built-in code editor, and enhances core text and media widgets.

Draft, Schedule, and Preview Changes in the Customizer

Prior to 4.9, users could get a live preview of their sites in the Customizer but any changes they made would need to be saved immediately or discarded. This update makes it possible to draft and schedule changes in the Customizer, and even share a preview link to collaborate on changes before making them live. Users can now stage content, such as new pages, a new set of widgets, a different combination of menu items, and schedule it all to publish at a future date.

This release also brings the ability to search, browse, and preview themes directly in the Customizer. The search interface includes filters for subject, features, and layout, just like the ones on the “Add Themes” screen in wp-admin. It does not yet include the featured, popular, latest, or favorites tabs, so users will need to navigate back to the admin if they want to browse those categories.

The menu creation process has also been updated in the Customizer to be less confusing with a rethink of the UI and revised copy.

Syntax Highlighting and Error Checking Added to the Code Editors

WordPress 4.9 brings syntax highlighting, linting, and auto-completion to the built-in code editors by incorporating the CodeMirror library. These long-awaited improvements are now available in the theme and plugin editors as well as the custom HTML widget and additional CSS box in the Customizer. The feature comes with prominent warnings about directly editing themes and plugins and protection against saving code that would cause a fatal error.

New Core Gallery Widget and Support for Shortcodes and Embedded Media in the Text Widget

WordPress 4.9 adds a new gallery widget to the collection of core media widgets (audio, image, and video) that were introduced in 4.8. It brings the same gallery-creation features to widgets that have long been available in the post and page editors.

These incremental changes will help users get ready for Gutenberg’s block-based interface. The plan is to eventually transition widgets over to blocks after Gutenberg is in core and the plugin already has support for a gallery block, as well as a Custom HTML block.

As of 4.9, users can now embed media in the Text widget, including images, video, and audio by clicking the “Add Media” button. In order to make this possible, WordPress contributors also needed to add shortcode support to widgets, a feature that users have requested for nearly a decade. With this now built into core, hundreds of thousands of WordPress sites will no longer need additional code from plugins and themes to use shortcodes in widgets.

Widgets have also been improved to offer a better migration experience with updated logic for mapping widgets between two themes’ widget areas.

On Towards Gutenberg

WordPress 4.9 also includes a notice in the about.php page of the admin, inviting users to help test or contribute to Gutenberg. It is the first time a feature plugin has been highlighted so prominently on the page users see after they update to the latest version.

The Gutenberg project has been getting a lot of attention over the past few months as the WordPress community looks ahead to the 5.0 release that will introduce the new editor to the world. Meanwhile, contributors to 4.9 have been working in tandem to make significant improvements to existing features, enabling users to do more with widgets and overall site design than ever before. This release was led by Weston Ruter and Mel Choyce with help from 443 contributors, 42% (185) of them contributing to WordPress for the first time.

14 Comments


  1. Anyone knows if they’re doing a Twenty Eighteen theme this year?

    Report


    1. Well they do have a theme is supposed to be for Gutenberg. That could be the Twenty Eighteen you are thinking about.

      Report


  2. wp 4.9 comes with a bug… you can not edit any php file anymore in the backend theme or plugin editor !

    This message occurs

    “Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.”

    It does not matter if the website is http or https… you just cannot edit any php file anymore and save it. https://i.imgur.com/xipanRo.jpg

    Report


    1. The code that furnishes that error does a remote request using a Basic Auth header against the admin page with the file loaded. If fastCGI is enabled, for instance, the Basic Auth header won’t get built or sent and that may be preventing the request from successfully retrieving the contents of the page.

      All that to say, it’s probably something in your server configuration that’s preventing the page from being scraped and checked for fatals on submit.

      It’s easy enough to make the claim that it “worked before and now it doesn’t” but the reality of the situation is that cowboy coding with no safety net worked before and now it doesn’t, and that’s a feature, not a bug.

      Report


      1. Oow that is so easy to say. I have tested this on different servers now. All the same issue. There are several threads on the fora now reporting the issue. Even on wordpress.org https://wordpress.org/support/topic/cant-edit-main-theme-php-files-after-upgrading-to-4-9

        So not being able to edit a php file is a feature. That is a lot of crap. Before answering or replying please investigate a issue properly.

        I can edit the css style sheet with the editor. But not any php file. This is a BUG !

        Report


  3. Kudos to the great Team that delivered WP 4.9. I have installed it works fine, but the “Press This” button and bookmarlet are not showing under “Available Tool”. Can anyone help.

    Thanks

    Report


  4. It broke my site and now I cannot log in. DO NOT LOG OUT if you have a problem. You won’t be able to get back in.

    Report


  5. Does the editor recognize JavaScript?

    I created a script.js file for testing, and added a simple made up jquery line of code and it got all mad at me for using double quotes instead of single quotes.

    In JS it doesn’t matter, but in PHP it matters, so I’m wondering if it thinks I’m writing PHP?

    Report

Comments are closed.