play.wenpai.net/README.md
feibisi 63116305c6 feat: add wenpai-accelerate mu-plugin and blueprints
- mu-plugins/wenpai-accelerate.php: 轻量级国内加速,替代 wp-china-yes
  - API 重定向 (wordpress.org → wenpai.net)
  - Gravatar → Cravatar 国内源
- blueprints/starter.json: 默认中文环境蓝图
- blueprints/wpmind.json: WPMind 插件体验蓝图
2026-02-20 21:08:16 +08:00

41 lines
1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# play.wenpai.net
文派体验场 — WordPress Playground 自托管站点
## 目录结构
```
mu-plugins/
wenpai-accelerate.php # 国内加速 mu-pluginAPI 重定向 + Cravatar
blueprints/
starter.json # 默认蓝图(中文环境 + 加速)
wpmind.json # WPMind 插件体验蓝图
```
## mu-plugins/wenpai-accelerate.php
轻量级国内加速插件,替代 wp-china-yes 在 WASM 环境中的角色:
- `api.wordpress.org``api.wenpai.net`
- `downloads.wordpress.org``downloads.wenpai.net`
- Gravatar → Cravatar 国内源
作为 mu-plugin 自动加载,无需激活,无设置页面。
## 部署
蓝图通过 `writeFile` step 将 mu-plugin 写入 Playground 虚拟文件系统:
```json
{
"step": "writeFile",
"path": "/wordpress/wp-content/mu-plugins/wenpai-accelerate.php",
"data": "<php source>"
}
```
## 服务器
- 生产: feicode-prod (45.117.8.70)
- 站点根目录: `/www/wwwroot/play.wenpai.net/`
- 详细文档: 见 wenpai VM `docs/services/playground.md`