WordPress 4.8 于几个小时前发布。这是 2017 年的第一个主要版本,包含一些期待已久的新功能和增强功能。在本文中,我们将向您展示 WordPress 4.8 中的新增功能以及更新网站后应尝试哪些功能。
WordPress 4.8 于几个小时前发布。它是 2017 年的第一个主要版本,包含一些期待已久的新功能和增强功能。在本文中,我们将向您展示 WordPress 4.8 中的新增功能以及更新网站后应尝试的操作。

4.8 is a major WordPress release, and unless you are on a WordPress 托管 service, you will have to manually initiate the update.
4.8是主要的WordPress版本,除非您使用WordPress 托管服务,否则必须手动启动更新。
重要的: Don’t forget to create a 完整的 WordPress 备份 before starting the update.
重要提示:在开始更新之前,请不要忘记创建完整的 WordPress 备份 。
所有新媒体小部件 (The All New Media Widgets)
WordPress 4.8 中有三个新的默认小部件。用户长期以来一直在寻求这些小部件,现在它们终于来了。
WordPress 4.8 中有三个新的默认小部件。用户长期以来一直在寻求这些小部件,它们终于来了。
图像小部件 (Image Widget)

Previously if users wanted to 将图像添加到 WordPress 侧边栏, then they had to either use a plugin or write custom HTML.
以前,如果用户想将图像添加到 WordPress 侧边栏 ,则必须使用插件或编写自定义HTML。
使用 WordPress 4.8,您只需将图像小部件拖放到侧边栏即可。只需单击小部件设置中的“添加图像”按钮,就会弹出熟悉的 WordPress 媒体上传器。
使用 WordPress 4.8,您只需将图像小部件拖放到侧边栏即可。只需单击小部件设置中的“添加图像”按钮,就会弹出熟悉的 WordPress 媒体上传器。
您可以从计算机上传图像或从媒体库中选择以前上传的图像。上传后,单击“添加到小部件”按钮,您将能够在小部件预览中看到图像。不要忘记单击“保存”按钮来存储您的小部件设置。
您可以从计算机上传图像或从媒体库中选择以前上传的图像。上传完成后,单击“添加到小部件”按钮,您将能够在小部件预览中看到图像。不要忘记单击“保存”按钮来存储您的小部件设置。

视频小部件 (Video Widget)

Similar to the image widget, WordPress 4.8 also includes a video widget. It allows you to easily upload videos to the WordPress sidebar or display any video from YouTube, Vimeo, or any other 嵌入 provider.
类似于图像小部件,WordPress 4.8还包括一个视频小部件。 它使您可以轻松地将视频上传到WordPress侧边栏,或显示来自YouTube,Vimeo或任何其他嵌入提供商的任何视频。
Note: we recommend that 你永远不应该将视频上传到你的 WordPress 网站. Instead, you should use a video hosting provider like YouTube or 维梅奥.
注意:我们建议您永远不应该将视频上传到您的 WordPress 网站 。 相反,您应该使用YouTube或维梅奥类的视频托管服务提供商。
视频小部件使嵌入来自流行视频托管提供商的视频变得非常容易。您需要单击小部件中的“添加视频”按钮。这将弹出媒体上传器弹出窗口。
视频小部件可以轻松嵌入来自流行视频托管提供商的视频。您需要单击小部件中的“添加视频”按钮。这将弹出媒体上传器弹出窗口。
Next, you need to click on the ‘Insert from URL’ and then paste the video URL. As soon as you paste the URL, WordPress will fetch the 视频缩略图 and display it.
接下来,您需要单击“从URL插入”,然后粘贴视频URL。 只要您粘贴URL,WordPress就会获取视频缩略图并显示出来。

单击“添加到小部件”按钮,您将在小部件区域中看到视频缩略图。不要忘记单击“保存”按钮来存储您的小部件设置。
单击“添加到小部件”按钮,您将在小部件区域中看到视频缩略图。不要忘记单击“保存”按钮来存储您的小部件设置。
音频小部件 (Audio Widget)

与视频和图像小部件类似,音频小部件允许您轻松地将音频文件添加到 WordPress 侧边栏。只需单击“添加音频”按钮即可上传音频文件。
与视频和图像小部件类似,音频小部件允许您轻松地将音频文件添加到 WordPress 侧边栏。只需单击“添加音频”按钮即可上传音频文件。
该小部件将很好地将音频文件嵌入 HTML5 音频播放器中。它支持 MP3、OGG 和 WAV 音频文件格式。
该小部件非常适合将音频文件嵌入 HTML5 音频播放器。它支持 MP3、OGG 和 WAV 音频文件格式。
文本小部件中的可视编辑器 (Visual Editor in Text Widget)

Previously, the default text widget was just a plain text area where you needed to add your own HTML even for very basic formatting. WordPress 4.8 ships with the new and improved text widget with 可视化编辑器 support.
以前,默认的文本小部件只是一个纯文本区域,即使是非常基本的格式,也需要在其中添加自己HTML。 WordPress 4.8附带了具有可视化编辑器支持的新的和改进的文本小部件。
It is the light version of the same visual editor that you use to write posts and pages. It contains buttons to make text bold or italic, add lists, and links. Advanced users can still switch to the 文本编辑器 to write HTML manually.
它是用于编写帖子和页面的同一可视化编辑器的简化版本。 它包含使文本变为粗体或斜体,添加列表和链接的按钮。 高级用户仍然可以切换到文本编辑器以手动编写HTML。
可视编辑器增强功能 (Visual Editor Enhancements)

当使用可视化编辑器写文章时,许多初学者发现很难将光标从链接上移开。 WordPress 4.8 修复了这个问题,现在用户只需按向右或向左箭头键即可将光标从链接上移开。
当使用可视化编辑器撰写文章时,许多初学者发现很难将光标从链接上移开。 WordPress 4.8 解决了这个问题,现在用户只需按向右或向左箭头键即可将光标从链接上移开。
WordPress新闻和事件仪表板小部件 (WordPress News and Events Dashboard Widget)

WordPress 4.8 also introduced the new ‘WordPress News and Events’ dashboard widget. It appears on the dashboard screen of your WordPress 管理区 and displays WordPress news as well as WordPress events near your location.
WordPress 4.8还引入了新的“ WordPress新闻和事件”仪表板小部件。 它显示在WordPress 管理区的仪表板屏幕上,并显示WordPress新闻以及您所在位置附近的WordPress事件。
If you have multiple users on your site, then each user will see events near their own location. The widget automatically tries to guess user’s location by sending their IP address, timezone, and locale to api.wordpress.org
. If you are using a VPN服务, then you will see the events based on the sever location you are using.
如果您的站点上有多个用户,则每个用户都将在自己位置附近看到事件。 小部件通过将用户的IP地址,时区和语言环境发送到api.wordpress.org
来自动尝试猜测用户的位置。 如果您使用的是VPN服务 ,则将根据您使用的服务器位置查看事件。
您还可以手动更改位置以查看您附近或世界上任何其他地方的事件。
您还可以手动更改您的位置以查看您附近或世界其他任何地方的事件。
引擎盖下的变化 (Under The Hood Changes)
WordPress 4.8 也为开发人员带来了一些令人兴奋的变化。以下是一些底层改进。
WordPress 4.8 还为开发者带来了一些令人兴奋的变化。以下是一些内部改进。
编辑器 API 的更改
编辑器 API 的更改
A new api for TinyMCE editor to be dynamically instantiated via JS. (#35760)
TinyMCE编辑器的新API可通过JS动态实例化。 ( #35760 )
可变定制器宽度
可变定制器宽度
If you have used live theme customizer on large screens, then you may have noticed that the sidebar looks too narrow. WordPress 4.8 makes the customizer sidebar width to be proportional to users screen size. (#32296)
如果您在大屏幕上使用了实时主题定制器,则可能已经注意到侧边栏看起来太窄。 WordPress 4.8使定制工具侧边栏宽度与用户屏幕尺寸成比例。 ( #32296 )
用户名突出显示在编辑用户屏幕上
用户名在编辑用户屏幕上突出显示
Since WordPress 4.8, edit user screen will now prominently display user’s name in the heading. (#28182)
从WordPress 4.8开始,编辑用户屏幕现在将在标题中突出显示用户名称。 ( #28182 )
标签云小部件将不使用标题标签
标签云小部件将不使用标题标签
Previously tag cloud widget showed the number of posts filed under a tag in the title popover. The title tag in the code is now replaced with more accessible aria-label attribute. (#35566)
以前,标签云小部件显示了标题弹出窗口中标签下提交的帖子数。 现在,代码中的标题标签已替换为更易于访问的aria-label属性。 ( #35566 )
我们希望本文能让您全面了解 WordPress 4.8 的新增功能。我们对新媒体小部件感到特别兴奋。你在兴奋什么?
我们希望本文能让您对 WordPress 4.8 的新增功能有一个很好的了解。我们对新媒体小部件感到特别兴奋。你在兴奋什么?
If you liked this article, then please subscribe to our YouTube 频道 for WordPress video tutorials. You can also find us on 推特 and Facebook.
如果您喜欢这篇文章,请订阅我们的YouTube 频道 WordPress视频教程。 您也可以在推特和Facebook上找到我们。
翻译自: https://www.wpbeginner.com/news/whats-new-in-wordpress-4-8/