WordPress 4.6, “Pepper” was released earlier this week to what has been by all accounts a pretty great reception. Notable features and improvements in 4.6 include Shiny Updates v2™, native fonts in the admin, editor improvements, and a whole host of developer goodies.
And as with any major release of WordPress, there are always features and improvements made that get overlooked. Here’s five little-known features, fixes, and improvements you may not know about in WordPress 4.6.
1. A modernized Import screen
What began as an effort to remove
title attributes for accessibility reasons eventually turned into a significant usability refresh of the Import screen.
Easily the biggest change was making this screen feel more like a place to manage and launch importers as separate actions. Each importer now has row actions to install and run, as well as a “Details” link that opens the plugin information popup just like with regular plugins.
As a bonus, importers can also now be installed in-line similarly to how shiny updates allows for in-line updates of plugins and themes. Click “Install” and it happens in place. Smart!
Finally, 4.6 also introduces help text to this screen. Overall, big – yet incremental – usability changes to a not oft-used screen. And of course, it’s now more accessible!
2. Network Admin and the Sites menu got a better icon
In a relatively minor change, a new dashicon was introduced for the Network Admin toolbar item, as well as the Network Admin > Sites menu. Big improvement over the old ambiguous key icon.
3. Embed previews when inserting from a URL were fixed
With the advent of embeddable WordPress content starting in 4.4, came the ability to embed that content via the Insert from URL workflow in the media modal. At some point, the preview mechanism was broken; this has been fixed in 4.6. Love this feature.
4. Upload and install plugins from the same screen
A core tenet of the Shiny Updates v2™ feature in WordPress 4.6 was to increase the efficiency of installing and updating plugins and themes.
One lesser-known way this was achieved was by integrating the plugin upload form into the main Add Plugins screen. The old way redirected users to a completely separate page.
If you’re wondering why that sounds familiar, it already worked this way in Add Themes. Regardless, nice to see incremental usability improvements like this.
5. Actions and filters can now be properly deprecated
One code change that really didn’t get a lot of play in feature announcements was that deprecating hooks is now possible in core. Add-on developers may now collectively rejoice!
No core hooks were deprecated in 4.6, but that shouldn’t stop plugin and theme developers from using it right away,
Two new global functions were added,
apply_filters_deprecated(), along with the private helper they both use:
_deprecated_hook(). All in all, deprecating hooks is pretty straightforward:
Old action call:
<br /> /**<br /> * Fires when writing Codex articles.<br /> *<br /> * @since 0.71<br /> *<br /> * @param bool $codex Whether to write Codex articles. Default false.<br /> * @param bool $devhub Whether to write DevHub articles. Default true.<br /> do_action( 'write_codex_articles', $codex, $devhub );<br />
Deprecated action call:
<br /> /**<br /> * Fires when writing Codex articles.<br /> *<br /> * @since 0.71<br /> * @deprecated 3.7.0<br /> * @see 'write_devhub_articles'<br /> */<br /> do_action_deprecated( 'write_codex_articles', array( $codex, $devhub ), '3.7.0', 'write_devhub_articles', 'woohoo!' );<br />
Hope you’ve enjoyed this post. Are there any other lesser-known improvements in WordPress 4.6 that tickled your fancy? Share them in the comments!
In an effort to fully embrace internationalization in the WordPress community, I launched a campaign this morning called Translate Me.
See, I released a new plugin this week, Support Me, which aims to drastically simplify the process of creating – and later removing – temporary user accounts for support purposes.
Support Me is unique in that it is the first of my plugins to leverage the amazing and massive community of translators over at translate.wordpress.org. Language packs are served to Support Me users on-demand, meaning I don’t need to generate and ship translation files with the plugin; I simply internationalize my plugin as usual, then register the text domain in the plugin header and it just works. Amazing.
In honor of French being the first language at 100% for my Support Me plugin, I’ll be using WP en français today. Thanks @fxbernard!— Drew Jaynes (@DrewAPicture) July 29, 2016
The concept behind Translate Me is simple: For every locale team that 100 percent translates Support Me, I will use WordPress in that language – where feasible – for an entire day.
Since French (France) was the first team to reach 100 percent completion, I’ve been using WordPress in French all day today. I can definitely tell you it has proven to be a worthy challenge of my familiarity with WordPress admin interfaces, mostly because I don’t speak French!
Bonus points go out to the third-party translators who’ve translated strings for AffiliateWP – the plugin I work on full-time. The French translation appears to be quite complete!
Progress So Far
As of this writing, Support Me has already been 100 percent translated for six locales:
- English (UK) – Gary Jones (@GaryJ)
- French (France) – François-Xavier Bénard (@fxbenard)
- German – Bego Mario Garde (@pixolin)
- German (Formal) – Bego Mario Garde (@pixolin)
- Italian – Paolo Valenti (@wolly)
- Russian – Sergey Biryukov (@SergeyBiryukov)
Moar since this was originally posted:
- Hebrew – Rami Yushuvaev (@ramiy)
- Japanese – Naoko Takano (@nao)
- Nepali – Nilambar Sharma (@rabmalin)
Either way, it looks like I’ll be experiencing a lot of multilingual WordPress in the next few days once I pick up the campaign again on Monday morning. So far the schedule looks like this:
- Monday: English (UK)
- Tuesday: German (Formal in the afternoon)
- Wednesday: Russian
- Thursday: Italian
- Friday: Hebrew
- Monday: Japanese
- Tuesday: Nepali
- Wednesday: Your language? 😍
As more languages are completed, I’ll continue to add days. The goal is to promote the idea of community translation and ensure credit is given where it’s due. And to be honest, I’m kind of looking forward to the completion of an RTL language; that should be an interesting day!
Press the Words
With future days’ languages still up for grabs, it’s a great opportunity to start contributing to WordPress through translation.
If you’re a speaker of any language and have previously been hesitant to contribute to WordPress for fear that you don’t know how to code or design or whathaveyou, the Translation team can very likely use your help! With upward of 150 active locales, there’s something for just about everyone. Check it out!
Side note: As of WordPress 4.6, plugins and themes hosted and served from WordPress.org will no longer need to load their respective text domains, more on that on make/core.