WordPress 4.4新增功能

WordPress4.4引入了响应式图像,使图像能够自动适应各种屏幕尺寸,无需额外的CSS调整。此外,所有WordPress网站现已成为oEmbed提供商,允许跨站嵌入内容。新版本还带来了TwentySixteen主题,具有移动优先的设计。对于开发者,REST API的第一阶段被纳入,提供了更多的扩展性和定制选项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

WordPress 4.4 was released just a few minutes ago. This will be the last major WordPress release of 2015 and as expected it comes with a new default theme and some other great features. In this article, we will show you what’s new in WordPress 4.4, and which features you should try after updating your websites.

WordPress 4.4是在几分钟前发布的。 这将是2015年的最后一个主要WordPress版本,并且正如预期的那样,它带有新的默认主题和一些其他强大功能。 在本文中,我们将向您展示WordPress 4.4中的新增功能,以及在更新网站后应尝试使用的功能。

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备份

Features and screenshots of the new WordPress 4.4
开箱即用的响应式图像 (Responsive Images Out of The Box)

The number of devices, screen resolutions, and display sizes add to the complexity of serving better quality images. Using CSS and other solutions can make images fit on mobile devices, but you really don’t need that anymore.

设备的数量,屏幕分辨率和显示尺寸增加了提供更好质量的图像的复杂性。 使用CSS和其他解决方案可以使图像适合移动设备,但您实际上不再需要它。

WordPress 4.4 comes with responsive images out of the box. WordPress will automatically serve the right image size for the user’s browser, device, and screen size.

WordPress 4.4自带响应图像。 WordPress将自动为用户的浏览器,设备和屏幕尺寸提供正确的图像尺寸。

This is done using the srcset attribute in img HTML tag. It allows client’s browser to display an image based on device capabilities. Since it works out of box, you don’t need to do anything. It uses a filter to add srcset attribute on the fly.

这是使用img HTML标签中的srcset属性完成的。 它允许客户端的浏览器根据设备功能显示图像。 由于它是开箱即用的,因此您无需执行任何操作。 它使用过滤器动态添加srcset属性。

WordPress powers more than 25% of all websites on the internet. Users accessing WordPress powered websites will not waste bandwidth on loading images too large for their screen.

WordPress为Internet上所有网站的25%以上提供动力。 用户访问由WordPress驱动的网站时,不会因为加载屏幕太大而浪费带宽。

You will still need to optimize your images to speed up WordPress.

您仍然需要优化图像以加快WordPress的速度

外部可嵌入 (Externally Embeddable)

WordPress has been using oEmbed to embed videos, tweets, status updates, and content from other sites that supported oEmbed.

WordPress一直在使用oEmbed 嵌入来自支持oEmbed的其他网站的视频推文 ,状态更新和内容。

Starting from 4.4, all WordPress sites will become an oEmbed provider. This means WordPress users will be able to embed posts from other WordPress sites.

从4.4开始,所有WordPress网站都将成为oEmbed提供商。 这意味着WordPress用户将可以嵌入其他WordPress网站中的帖子。

Embed posts from other WordPress sites in your blog

If you don’t want to use this feature, then you can disable it with the plugin called: Disable Embeds.

如果您不想使用此功能,则可以使用名为Disable Embeds的插件将其禁用

二十六 (Twenty Sixteen)

In 2010, WordPress 3.0 came with a new default theme Twenty Ten. Since then, each year WordPress releases a new theme.

在2010年, WordPress 3.0附带了新的默认主题“二十”。 从那时起,WordPress每年都会发布一个新主题。

As the last release of 2015, WordPress 4.4 comes with a brand new Twenty Sixteen default theme. Here is how it looks:

作为2015年的最新版本,WordPress 4.4带有全新的二十十六默认主题。 外观如下:

Twenty Sixteen the new default WordPress theme for 2016

This theme is beautifully designed with a mobile first approach. It is fully responsive on all screen sizes and devices.

该主题采用移动优先方法进行了精美设计。 它在所有屏幕尺寸和设备上均具有完全响应能力。

Twenty Sixteen comes with the traditional content+sidebar blog layout. It has built-in color schemes, and you can also use your own colors to make it uniquely yours.

传统的content + sidebar博客布局附带了26。 它具有内置的配色方案,您也可以使用自己的颜色使其成为唯一的颜色。

Twenty Sixteen in theme customizer
引擎盖下的改进 (Under The Hood Improvements)

The best thing about WordPress is that it can be easily extended with plugins and has thousands of themes that you can use.

关于WordPress的最好的事情是它可以很容易地通过插件扩展,并具有成千上万的主题可以使用。

WordPress 4.4 brings some exciting changes and improvements for developers. This means that you can expect more features and updates from your favorite WordPress plugins.

WordPress 4.4为开发人员带来了一些激动人心的更改和改进。 这意味着您可以从自己喜欢的WordPress插件中获得更多功能和更新。

Phase 1 of Rest API

Rest API的第一阶段

WordPress 4.4 initiates the inclusion of REST API plugin into WordPress core. This will allow WordPress developers to create new APIs or work on the existing WordPress APIs in their own applications. Plugin authors will also be able to take advantage of the REST API by adding custom end points. (#33982)

WordPress 4.4开始将REST API插件包含到WordPress核心中。 这将允许WordPress开发人员在自己的应用程序中创建新的API或使用现有的WordPress API。 插件作者还可以通过添加自定义端点来利用REST API。 ( #33982 )

WP_Network for Multisites

WP_Network for Multisites

There are many under the hood improvements for multisite networks in WordPress 4.4. Most important one is the introduction of WP_Network class. It provides a better way to handle multisites and fixes several bugs. (#31985)

WordPress 4.4对多站点网络进行了许多改进。 最重要的是介绍WP_Network类。 它提供了一种更好的方法来处理多站点并修复了多个错误。 ( #31985 )

Taxonomy Term Metadata

分类术语元数据

With WordPress 4.4, Terms in taxonomies (like Categories and tags or any custom taxonomy) can now have metadata associated with them. (#14162)

使用WordPress 4.4,分类法中的术语 (例如Category和tag或任何自定义分类法 )现在可以具有与之关联的元数据。 ( #14162 )

Improved Comment Queries and Output

改进的评论查询和输出

Comment object and query is improved with the introduction of WP_Comment class. (#32619)

通过引入WP_Comment类,改进了注释对象和查询。 ( #32619 )

Comment form output is now changed to display the comment textarea first and then name, email, and URL fields. (#29974)

现在,注释表单输出已更改为先显示注释文本区域,然后显示名称,电子邮件和URL字段。 ( #29974 )

New comment form output displays textarea first and then name, email, and website fields in comment form

We hope this article gave you a good overview of what’s new in WordPress 4.4. We are particularly excited about responsive images and improved embeds. What are you excited about?

我们希望本文能为您提供有关WordPress 4.4新增功能的良好概述。 我们对响应式图像和改进的嵌入效果特别满意。 你兴奋什么?

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-4/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值