[[Email protected] 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.250connecting to wordpress.org| 66.155.40.249|:80... connected. Http request sent, awaiting response... 302 moved temporarilylocation: 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 can download the theme through the link, Linux wget know that jump to HTTPS can not be authenticated, need to add parameters wget--no-check-certificate http://wordpress.org/themes/download/ Moesia.1.09.zip can download, or add www, in PHP changes as follows: (Wordpress/wp-admin/update.php's ' install-theme ' = = $action)
$upgrader->install ($api->download_link);
Switch
$upgrader->install (Str_replace (' http://', ' http://www ', $api->download_link));
WordPress failed to install theme online on Linux