标签:http io os ar sp 2014 on cti ad
[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));
标签:http io os ar sp 2014 on cti ad
原文地址:http://my.oschina.net/wnjustdoit/blog/336036