After being approved for a partial merge, Shiny Updates V2 was added to WordPress core Core is the set of software required to run WordPress. The Core Development Team builds WordPress. in [37714]. Thanks to that change, updating as well as installing and deleting plugins and themes has become much easier for users. With the exception of the wp-admin/update-core.php
screen, those actions are now all performed via AJAX, avoiding what we internally called The Bleak Screen of Sadness.
Visual Changes
If you wanna see Shiny Updates in action, check out the merge proposal post which contains screenshots and a video.
Proposal: More Shiny Updates
One big user facing change is about search: There is now an AJAX search on both the Installed Plugins screen as well as the Add New Plugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party screen, this means the search results change as you type, drastically simplifying your workflow.
Under The Hood
The JavaScript JavaScript or JS is an object-oriented computer programming language commonly used to create interactive effects within web browsers. WordPress makes extensive use of JS for a better user experience. While PHP is executed on the server, JS executes within a user’s browser. https://www.javascript.com/. responsible for shiny updates (enqueued via the 'updates'
handle) has been completely revamped to improve the UX User experience across the board by displaying better progress updates and error messages.
If you’re in any way relying on this JavaScript, you will notice that wp.updates.update()
has been renamed to wp.updates.updatePlugin()
. The same goes for the plugin update success / error callbacks.
In addition to that, callbacks are now passed as arguments to the wp.updates.updatePlugin()
, wp.updates.updateTheme()
and the like, e.g. wp.updates.updatePlugin( { success: wp.updates.updatePluginSuccess, … } )
. The whole code is thoroughly documented.
However, you probably won’t ever need to call these functions directly. Instead, you might wanna hook into the custom jQuery events that are being triggered throughout the code, like 'wp-plugin-install-success'
.
Shiny Updates V3
While the last iteration of Shiny Updates has been merged into core, development of the plugin continues to happen on GitHub. If you’re running the Shiny Updates feature plugin on your site, everything will continue to work when using 4.6.
The current version of the plugin now only contains things that didn’t make it into 4.6 and is our base for further development. Feel free to keep it running and provide feedback!
#4-6, #dev-notes, #shiny-updates