WP 3.4都发布了,是时候写写关于WP的文章了
3.4 更新内容:
http://codex.wordpress.org/Version_3.4
更详细介绍:
core.trac.wordpress.org/milestone/3.4
关于自定义头部什么的我就不说了。可以到http://cn.wordpress.org/2012/06/14/green/ 查看。
数据库最主要的改变是 Remove blog_id column from wp_options,Redundant index in comment table schema
A minor improvement for the comments table: the first index is redundant since it is a prefix of the second one.
KEY comment_approved (comment_approved),
KEY comment_approved_date_gmt (comment_approved,comment_date_gmt),
......
把comment_approved索引去掉了。
然后是绑定的两个默认主题的一些更新。
评论方面:
以comment_开头的cookies设置变得可以HOOK了,见:http://core.trac.wordpress.org/attachment/ticket/17976/17976.5.patch
修正cron执行方面的bug: http://core.trac.wordpress.org/attachment/ticket/19700/19700.2.diff
另外,对使用的外部库进行了一些更新和修正:
详见:http://core.trac.wordpress.org/query?group=status&component=External+Libraries&milestone=3.4
Update to SimplePie 1.2.1
Upgrade hoverIntent to r6
Update phpMailer to version 5.2
Re-pin Akismet external to 2.5.4
Re-pin Akismet external to 2.5.5
Update imgAreaSelect jQuery plugin
Upgrade PHPMailer to 5.2.1
SimplePie: fix call to PEAR Net_IPv6 instead of SimplePie_Net_IPv6
PemFTP Failing to Fall Back to Pure PHP Implementation
jQuery 1.7.2
jQuery UI 1.8.19
re-pin akismet external to 2.5.6
jQuery UI 1.8.20
对来自phpclasses的PemFTP类进行了兼容性修正(http://core.trac.wordpress.org/ticket/20187):
In /wp-admin/includes/class-ftp.php on line 902:
if(!@dl($prefix . 'sockets.' . PHP_SHLIB_SUFFIX)) $mod_sockets=FALSE;
更改为:
if(!is_callable('dl') || !@dl($prefix . 'sockets.' . PHP_SHLIB_SUFFIX)) $mod_sockets=FALSE;
此外,修正了一些如Call-time pass-by-reference has been removed in PHP (Fatal error in 5.4) or deprecated (Warning in 5.3)之类的PHP warning . (http://core.trac.wordpress.org/ticket/20163)
http类的修正。如对WP_Http_Curl类增加了DELETE、OPTIONS和TRACE选项。对于REST方式的请求,DELETE是非常必要的~~
The switch statement in WP_Http_Curl::request() just needs a new case for each:
case 'DELETE':
curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, 'DELETE' );
break;
case 'OPTIONS':
curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, 'OPTIONS' );
break;
case 'TRACE':
curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, 'TRACE' );
break;
WP实在是功能太强大的,即使此次是一次小的更新,更新的内容也有很多,没时间一一说明。
有兴趣的可以参考WP开发团队为开发者写了一篇简短的介绍改变的文章,点击阅读《WordPress 3.4 Field Guide for Developers》(英文)。
All Comments (0)