






















The official version of WordPress 5.0 has been released on 2018-12-07. Users of self-built WordPress can upgrade in the web management page of the WordPress background. The two most obvious features of this update are: 1. The background management uses a new editor, and 2. The theme of 2019 has been added, which adapts to this new editor.
This time 5.0 is a major version update, unlike the previous 4.9 and 4.8 updates, which can be seen from the version number.
The first impression of this new block editor (Gutenberg Editor) is that it is more concise, this new editor has more white space. When you use the editor for the first time, you will feel a little uncomfortable, because the new editor does not have the familiar toolbar. In its place is a simple Add Block button and some other basic operations.
In the new version of the editor, every paragraph, image, subtitle, quote, etc. is a “block”. You can do custom actions for each block, such as setting a different font size, font color, and even background color and custom CSS for each natural segment. And all of this is visualized through the “Components” tool on the right.
You can drag blocks directly to achieve effects such as dragging natural segments.
The new editor is compatible with the boss editor. To use the old editing mode, you can do this by inserting one or more Classic Blocks. This classic block is on par with other blocks in the new editor, such as natural paragraph blocks, subtitle blocks, etc. Classic blocks can contain one or more natural paragraphs, subheadings, and for simple typography, it can replace the latest block editor. When using classic blocks, you can still see the familiar toolbar.
Classic Block Screenshot
When editing previously published articles and pages, the original editing mode is still used by default, that is, a classic block is included in the new editor.
The original blocks are all corresponding to HTML tags and have relatively few functions. Classic blocks are used for compatibility with previous generation editors. To use the new features, you need to learn to use these new blocks.
<p><h1> ~ <h6> heading.<ul> or <ol> list.<!--more-->.<img>.<blockquote>. The new version of the application block supports citations (Citation).video Shortcode in the previous version of the WordPress editor.<hr>.<pre>.<pre> and <code> combination.Many new blocks have been added in the new version. By using these blocks, you can directly insert some content you want visually without editing the source code or using plugins.
<pre>. It can realize the monospace display of English characters.The following could have been added as Widgets in the web menu. It is now also possible to add directly in the article as a block.
In addition, there is now an Embed function, which can directly embed third-party content, such as Twitter, YouTube, SoundCloud, etc.
In order to better match all the typographic features of the new editor, WordPress also launched a new 2019 default theme. Details
Just like the default themes in the past, the new WordPress themes are also very versatile. However I feel that the new 2019 theme is not as clean as the previous 2017 theme (the one this blog is using).
WordPress does not guarantee continued security updates for older versions, so you should upgrade to the latest 5.0 version. However, in fact, as can be seen from the version history of WordPress, WordPress is still maintaining 3.7 (released on 2013-10-24) and all subsequent versions. So even if you don’t update to version 5.0, you may continue to receive security updates.
It should be noted that every time you update a WordPress version, especially a major version update, some functions in the source code will change, which means that there is no guarantee that your plugin will work correctly in the new WordPress. You should check that the plugins you have enabled work correctly on the latest version, or that an update for the new version has been released. If you’re a plugin developer, you should have a site with a beta version of WordPress installed, and it’s long overdue for your plugin to work with the latest version.
Be sure to backup your site before upgrading. For WordPress, you need to back up the WordPress code directory and database contents.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。