wordpress在linux上在线安装主题失败
[nobody@BJNET-TEST-138 wangnan]$ wget http://wordpress.org/themes/download/moesia.1.09.zip --2014-10-20 13:51:05-- http://wordpress.org/themes/download/moesia.1.09.zip Resolving wordpress.org... 66.155.40.249, 66.155.40.250 Connecting to wordpress.org|66.155.40.249|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://wordpress.org/themes/download/moesia.1.09.zip [following] --2014-10-20 13:51:05-- https://wordpress.org/themes/download/moesia.1.09.zip Connecting to wordpress.org|66.155.40.249|:443... connected. ERROR: certificate common name `*.wordpress.org‘ doesn‘t match requested host name `wordpress.org‘. To connect to wordpress.org insecurely, use `--no-check-certificate‘. Unable to establish SSL connection.
windows可以通过链接下载主题,linux wget得知跳转到https无法认证,需要加参数wget --no-check-certificate http://wordpress.org/themes/download/moesia.1.09.zip可以下载;或者加上www,在php里面更改如下:(wordpress/wp-admin/update.php的‘install-theme‘ == $action)
$upgrader->install($api->download_link);
改为:
$upgrader->install(str_replace(‘http://‘, ‘http://www.‘, $api->download_link));
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。