The latest version of WordPress named “Smith” was released yesterday which brings us another round of core changes. This time, the team worked mainly on the back-end editing and admin functions, such as a big TinyMCE (visual editor) update, gallery previews, media playlists, an improved widget UI and live theme previews (only to mention a few). Here’s what you need to know about the major changes in WordPress 3.9.
Improved Widget Interface Link
While the old widget interface set the standard for drag-and-drop UI when it was introduced, it was time for an overhaul. The developer team took the Widget Customizer plugin1 and essentially built it into the core.
The biggest changes that come with the new widget interface are live previews, among others:
- Editing existing widgets
- Adding a new widgets
- Widget reordering
- Entirely remove Widgets
- Adding a new widget
Updated Visual Editor Link
The visual editor has received a major overhaul (both under the hood and on the UI end), adding a horizontal line button, updated Plupload, and an updated TinyMCE. Small visual changes seem to have been applied to many different button icons.
The new visual editor brings with it gallery previews, meaning no more place holder boxes for galleries! You’ll have a live preview of your gallery, just like you do with images and other media.
The updated visual editor also brings drag & drop functionality, allowing you to drag images from your desktop, and drop them right into the post. They’ll be automatically formatted to fit the post.
Here’s a quick preview of how it works:
Live Theme Preview Additions Link
Live theme preview gives you a way to see how your site would look using a different theme. This has been around for a while and WordPress is finally adding new features to the framework they’ve built.
Apart from the usual customizations options like color, title and whatever else is defined by the theme, you can now add widgets and rearrange them, seeing exactly how they will look once saved. In addition, the header image facility has received an overhaul and now provides even more flexibility.
Easier Theme Installation Link
The new theme installation interface is a vast improvement over the old. It will be blatantly obvious to anyone who’s ever seen the pre-WordPress 3.9 theme installation screen.
Installing new themes is even easier now, too. The theme installation interface has been totally redone. Some of the most popular themes are displayed immediately in the “Featured” tab, for quick installation.
There are also tabs for popular themes and latest themes. The feature filter has been moved into it’s own tab, and has been generally cleaned up.
Audio & Video Playlists Link
Users are now able to create audio and video playlists with WordPress 3.9. They work as a shortcode, just like the image galleries do currently. Uploading audio and video is handled through the usual media uploader, with images and everything else. From there, you have the option to add them to a playlist.
A neat little feature is that WordPress 3.9 will try to automatically fetch album cover artwork using the ID3 tags in your media file.
Key Points For Developers Link
Plugin and theme developers need to know a few new and important things. Right when upgrading to WordPress 3.9, four new utility functions are mentioned.
doing_filter() allow for identifying a hook in progress. The other two functions,
remove_image_size() allow manipulation of custom image sizes.
The database layer has also been improved, making it more fault-resistant and bringing improved compatibility with PHP 5.5 and MySQL 5.6. For example, PHP’s mysqli library is now used when PHP 5.5+ is available. Autosave functionality18 has been improved, as well.
Your themes can now make use of HTML5 galleries and captions19. Adding
add_theme_support( 'html5', array( 'gallery', 'caption' ) ); to your theme’s functions.php file will enable HTML5 galleries and captions. Symlinked plugins20 are a new thing to WordPress 3.9. While it was technically possible in the past, it’s now fully supported:
“One of the cool little features included with 3.9 is the ability to symlink plugin directories. While it has been possible to symlink plugins in the past, functions such as plugins_url() return the wrong URL, which causes breakage in most plugins.”
If you’re a theme or a plugin developer, don’t forget to update your repositories. For some items you may just need to change your “Tested Up To” strings, in other cases (especially if you utilize heavily modified editor or upload configurations) you may need to look at the core changes in more detail.
So, What Are You Waiting For? Link
Keep in mind that upgrading your WordPress installation is the number one way to prevent malicious activity and exploits. As always, before any update, please do not forget to back up your database23 just in case anything goes pear shaped!
- 1 http://wordpress.org/plugins/widget-customizer/
- 2 https://www.smashingmagazine.com/wp-content/uploads/2014/04/widget-click-add-large-preview.png
- 3 https://www.smashingmagazine.com/wp-content/uploads/2014/04/widget-click-add-large-preview.png
- 4 http://make.wordpress.org/core/2014/01/18/tinymce-4-0-is-in-core/
- 5 http://make.wordpress.org/core/2014/04/11/plupload-2-x-in-wordpress-3-9/
- 6 https://www.smashingmagazine.com/wp-content/uploads/2014/04/rc2-welcome-large-preview.jpg
- 7 https://www.smashingmagazine.com/wp-content/uploads/2014/04/rc2-welcome-large-preview.jpg
- 8 https://www.youtube.com/watch?v=pIbMQRLpvbE
- 9 https://www.smashingmagazine.com/wp-content/uploads/2014/04/add-themes-new-large-preview.jpg
- 10 https://www.smashingmagazine.com/wp-content/uploads/2014/04/add-themes-new-large-preview.jpg
- 11 http://jquery.com/
- 12 http://www.tinymce.com/
- 13 http://underscorejs.org/
- 14 http://www.plupload.com/
- 15 http://backbonejs.org/
- 16 http://backbonejs.org/
- 17 http://masonry.desandro.com/
- 18 https://core.trac.wordpress.org/ticket/25272
- 19 http://make.wordpress.org/core/2014/04/15/html5-galleries-captions-in-wordpress-3-9/
- 20 http://make.wordpress.org/core/2014/04/14/symlinked-plugins-in-wordpress-3-9/
- 21 https://www.smashingmagazine.com/wp-content/uploads/2014/04/rc1-welcome-large-preview.png
- 22 https://www.smashingmagazine.com/wp-content/uploads/2014/04/rc1-welcome-large-preview.png
- 23 'http://codex.wordpress.org/WordPress_Backups'
- 24 http://wordpress.org/download/
Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf New York, on June 14–15, with smart design patterns and front-end techniques.