WordPress 4.5的新功能

WordPress 4.5 named “Coleman” was released just a few minutes ago. It is the first major WordPress release of 2016, and comes with some exciting new features. In this article, we will show you what’s new in WordPress 4.5, and which features you should try after updating your websites.

几分钟前发布了名为“ Coleman”的WordPress 4.5。 这是2016年的第一个主要WordPress版本,并提供了一些令人兴奋的新功能。 在本文中,我们将向您展示WordPress 4.5的新功能以及更新网站后应尝试的功能。

What's New in WordPress 4.5 (Features and Screenshots)

This is a major WordPress release, and unless you are on a managed WordPress hosting service, you will have to manually initiate the update.

这是主要的WordPress版本,除非您使用托管的WordPress托管服务,否则必须手动启动更新。

Important: Don’t forget to create a complete WordPress backup before starting the update.

重要提示 :在开始更新之前,请不要忘记创建完整的WordPress备份

主题徽标支持 (Theme Logo Support)

Adding a logo to your site from customizer has been a long awaited feature. Many premium WordPress themes allowed users to set logos from theme options, but there was no standard way to do it.

从定制程序向站点添加徽标是期待已久的功能。 许多高级WordPress主题允许用户从主题选项中设置徽标,但是没有标准的方法。

With WordPress 4.5, theme developers are now able to enable theme support for logo. This will allow users to set a logo for their website using the customizer.

使用WordPress 4.5,主题开发人员现在可以启用徽标的主题支持。 这将允许用户使用定制程序为其网站设置徽标。

Theme support for logo in WordPress 4.5

Remember it is a theme feature, which means that it needs to be defined by your theme. If a theme does not support this feature, then you will not be able to see it in customizer.

请记住,这是一个主题功能,这意味着它需要由您的主题定义。 如果主题不支持此功能,则您将无法在定制程序中看到它。

更好的网站图标预览 (Better Previews for Site Icons)

Site Icons were introduced in WordPress 4.4. This feature allows users to set a favicon and application icon for their websites.

网站图标WordPress 4.4中引入的。 此功能使用户可以为其网站设置网站图标和应用程序图标。

WordPress 4.5 brings a slight improvement to the feature. Up till 4.4.2, you only saw the preview of site icon when setting the image. With 4.5, you also see a preview under site identity panel after you have set the site icon.

WordPress 4.5对该功能进行了一些改进。 直到4.4.2,您在设置图像时只能看到站点图标的预览。 使用4.5,设置站点图标后,您还将在站点标识面板下看到预览。

Site icon preview
Customizer中的响应式预览 (Responsive Previews in Customizer)

Customizer in WordPress 4.5 comes with responsive live previews for desktop, tablet, and mobile devices.

WordPress 4.5中的Customizer带有针对台式机,平板电脑和移动设备的响应式实时预览。

Simply click on the device icon to switch the view between devices. This will give you a generic idea of how your site would look on different screens.

只需单击设备图标即可在设备之间切换视图。 这将使您对网站在不同屏幕上的外观有一个大致的了解。

Responsive previews in WordPress 4.5
优化的图像生成性能 (Optimized Image Generation Performance)

Responsive images were one of the major improvements in WordPress 4.4, which allowed WordPress to show smaller image sizes to users on smaller screens.

响应式图像是WordPress 4.4的主要改进之一,它使WordPress可以在较小的屏幕上向用户显示较小的图像尺寸。

WordPress 4.5 takes it to a new level by improving the performance of how WordPress generates image sizes.

WordPress 4.5通过提高WordPress 生成图像大小的性能将其提升到一个新的水平。

Previously, WordPress used 90 for the image quality when compressing images. Now it will use 82, which produces nearly identical images with much smaller sizes.

以前,WordPress在压缩图像时使用90作为图像质量。 现在,它将使用82,它将生成几乎相同的图像,但尺寸要小得多。

改进的评论审核屏幕 (Improved Comment Moderation Screen)

WordPress 4.5 cleans up the comment moderation screen and makes it more usable. Until 4.4.2, when you clicked on the link in comment moderation notification email, you saw a page like this:

WordPress 4.5清理了评论审核屏幕并使其更加可用。 直到4.4.2,当您单击评论审核通知电子邮件中的链接时,您看到的页面是这样的:

Old comment moderation page in WordPress 4.4 and earlier

This page didn’t allow you to edit a comment and if it also ignored plain HTML formatting used in a comment.

此页面不允许您编辑评论,并且也忽略了评论中使用的纯HTML格式。

This is how the comment moderation screen looks in WordPress 4.5.

这是WordPress 4.5中评论审核屏幕的外观。

New comment moderation screen in WordPress 4.5
注释中的相同域链接将没有Nofollow属性 (Same Domain Links in Comments will not have Nofollow attribute)

Previously, all links added into comment content area had nofollow attribute added to them by default.

以前,默认情况下,添加到评论内容区域的所有链接都具有添加到它们的nofollow属性

WordPress 4.5 will not add nofollow attribute to links pointing to the same domain.

WordPress 4.5不会将nofollow属性添加到指向同一域的链接。

If you or your users add link to a post or page on your site in the comment text, then WordPress will not add nofollow to it.

如果您或您的用户在评论文本中添加指向您网站上帖子或页面的链接,则WordPress不会在其中添加nofollow。

However, if a user add your link in the URL field when submitting comment, then WordPress will add nofollow and external attributes to the link.

但是,如果用户在提交评论时在URL字段中添加您的链接,则WordPress将向该链接添加nofollow和外部属性。

See how you can disable website/url field in WordPress comment form.

在WordPress评论表单中查看如何禁用网站/网址字段

可视编辑器增强功能 (Visual Editor Enhancements)

Most WordPress users spend most of their time writing content. This makes visual editor one of the most important areas in the overall WordPress user experience.

大多数WordPress用户将大部分时间都花在编写内容上。 这使可视化编辑器成为整个WordPress用户体验中最重要的领域之一。

WordPress 4.5 builds on some existing improvements and adds a few new ones to make writing faster and more enjoyable.

WordPress 4.5建立在一些现有改进的基础上,并添加了一些新的改进以使编写更快,更有趣。

Inline Link Editor

内联链接编辑器

One of the keyboard shortcuts in WordPress is CTRL+K (Command+K on Mac), which allows you to insert links in posts. Until 4.4.2, it opened the insert link popup which was a bit distracting.

WordPress中的键盘快捷键之一是CTRL + K(在Mac上为Command + K),可让您在帖子中插入链接。 直到4.4.2,它打开了插入链接弹出窗口,这有点令人分心。

In WordPress 4.5, pressing CTRL+K shows an inline insert link menu. Simply type the URL and continue writing your post without removing hands from keyboard.

在WordPress 4.5中,按CTRL + K将显示嵌入式插入链接菜单。 只需键入URL,然后继续写您的帖子,而无需从键盘上移开手。

Inline link editing in WordPress 4.5

New Inline Text Shortcuts

新的内联文本快捷方式

Inline text shortcuts were introduced in WordPress 4.3. These shortcuts allow you to quickly add formatting markup while writing posts.

内联文本快捷方式在WordPress 4.3中引入。 这些快捷方式使您可以在撰写文章时快速添加格式标记。

WordPress 4.5 allows you to use three or more dashes — to add a horizontal line. You can also use backticks `code` to add code.

WordPress 4.5允许您使用三个或更多的破折号-添加一条水平线。 您还可以使用反引号“代码”添加代码。

We reported in what’s coming in WordPress 4.5, that there will be shortcuts for bold and italic too. Unfortunately, those shortcut patterns didn’t make it into 4.5.

我们在WordPress 4.5的新功能中报告说,粗体和斜体也将有快捷方式。 不幸的是,这些快捷方式并未将其纳入4.5。

new inline shortcuts in WordPress 4.5

You can see a full list of shortcuts available in WordPress by clicking on the help icon in the visual editor.

通过单击可视化编辑器中的帮助图标,可以查看WordPress中可用的快捷方式的完整列表。

Keyboard shortcuts modal

For those of you who don’t want to use these shortcuts, you can disable inline text shortcuts in visual editor.

对于不想使用这些快捷方式的人,可以在Visual Editor中禁用内联文本快捷方式

用电子邮件登录 (Login With Email)

Many online services like Facebook, Twitter, etc. let you sign in not only by using your username but also with your email address.

许多在线服务,例如Facebook,Twitter等,不仅可以使用用户名登录,还可以使用电子邮件地址登录。

While you can easily forget your username, most people don’t forget their email address.

尽管您可以轻松忘记用户名,但大多数人不会忘记他们的电子邮件地址。

WordPress 4.5 allows users to sign in using either their username or email address as username.

WordPress 4.5允许用户使用其用户名或电子邮件地址作为用户名登录。

Login with email support in WordPress 4.5

If you were using a plugin to allow user log in with email in WordPress, then you can safely deactivate that plugin.

如果您使用插件允许用户使用WordPress中的电子邮件登录 ,则可以安全地停用该插件。

引擎盖下的改进 (Under The Hood Improvements)

WordPress 4.5 also brings some exciting new improvements for developers.

WordPress 4.5还为开发人员带来了一些令人兴奋的新改进。

Updated Libraries – WordPress 4.5 comes with new versions of bundled libraries for Underscores, Backbone, jQuery, and jQuery Migrate.

更新的库 – WordPress 4.5随附了针对Underscores,Backbone,jQuery和jQuery Migrate的捆绑库的新版本。

Selective Refresh in Customizer – Previously, some changes in customizer required entire page reload. WordPress 4.5 comes with a framework to allow selective refresh in the customizer. It is fast and will allow developers to do great things with live previews. (#27355).

自定义程序中的选择性刷新 –以前, 自定义程序中的某些更改要求重新加载整个页面。 WordPress 4.5带有一个框架,允许在定制程序中进行选择性刷新。 它的速度很快,将使开发人员可以通过实时预览来完成出色的工作。 ( #27355 )。

Customizable Embed Templates – WordPress 4.4 introduced embeds which allowed users to embed posts from their own and other WordPress blogs. WordPress 4.5 makes embed templates customizable so that theme authors can adjust embed display to match their theme. (#34561)

可自定义的嵌入模板 – WordPress 4.4引入了嵌入功能,使用户可以嵌入自己和其他WordPress博客中的帖子。 WordPress 4.5使嵌入模板可自定义,以便主题作者可以调整嵌入显示以匹配其主题。 ( #34561 )

WP_Site Class – WordPress 4.5 comes with WP_Site class for multisite WordPress installs. (#32450)

WP_Site类 – WordPress 4.5随附WP_Site class用于多站点WordPress安装。 ( #32450 )

Script Loader – WordPress 4.5 introduces wp_add_inline_script() which makes it easier to add inline scripts. (#14853, #35873)

脚本加载器 – WordPress 4.5引入了wp_add_inline_script() ,使添加内联脚本更加容易。 ( #14853#35873 )

We hope this article gave you a good overview of what’s new in WordPress 4.5. We are particularly excited about optimized image generation and embed templates. What are you excited about?

我们希望本文能为您提供有关WordPress 4.5新增功能的良好概述。 我们对优化的图像生成和嵌入模板感到特别兴奋。 你兴奋什么?

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/news/whats-new-in-wordpress-4-5/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值