WordPress使用FTP绕过官方服务器上传/更新主题

2022/1/23:更新为 Markdown 格式。

主题与插件的下载能正常使用,但在后台更新主题时,出现:cURL error 28: Connection timed out after 10010 milliseconds

使用FTP,找到WordPress的安装位置,打开以下目录:

wordpress/wp-content/themes

若是更新主题,可以将旧主题文件夹改名,将新主题文件夹移动进去即可。若是上传主题,直接将主题文件夹移动进去即可。

因为我的FTP服务器只能单个文件上传,使用phpstorm的上传功能速度又非常慢,但因为提供了直接解压FTP目录下压缩包的功能,因此更新主题并不繁琐。

即,若是在FTP上传时发现也是没有上传文件夹功能,可以找一下有没有提供文件解压功能。

还有一种更繁琐的更新方法,在后台的主题编辑器里面直接替换各文件的内容,不过似乎没有添加新文件的功能,所以还需要把缺失的文件上传到主题中。


Updating themes in admin-page, show an error: cURL error 28: Connection timed out after 10010 milliseconds, even though the download functions are available to themes and plugins.

Using FTP, open the folder in wordpress installation position:

wordpress/wp-content/themes

To update a theme, rename the older theme, and move the newer one to this folder.

To upload a theme, moving the theme to this folder is the whole process.

Because the FTP server of mine supports one-file-upload only, and the upload funtions of phpstorm is very slow, it is to hard for me to using ftp to upload theme. Thankfully, there are an upzip-functions to upzip the zip file, so, the problem are solved.

In the other word, if the FTP server support one-file-upload merely, you can try to find an upzip-function to solve the problem.

Besides, there is also a cumbersome method: Open the admin-page, and using theme-editor to replace the file content. But it seems haven\'t a function to add a new file, your should add the missing file to the theme folder.

版权声明:
作者:MWHLS
链接:http://panwj.top/105.html
来源:无镣之涯
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
打赏
< <上一篇
下一篇>>