EasyEngine / EasyEngine/wp-ee-docs-command

Issue with makrdown file path stored in post meta

未关闭
#4 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
0
派生
2
PR 合并指标
30 天内没有已合并 PR

描述

As the complete path of markdown files to be imported gets stored in post meta. It causes an issue if:

1. The absolute path to the plugin folder then changes.
2. Name of the plugin changes.

Both of these issue happened in our case.

Had to run the following search-replace commands to fix this:

```bash
wp search-replace '/var/www/htdocs/wp-content/plugins/ee-markdown-importer/' '/var/www/htdocs/current/wp-content/plugins/wp-ee-docs-command/' --url=

wp search-replace '/var/www/htdocs/wp-content/plugins/wp-ee-docs-command/' '/var/www/htdocs/current/wp-content/plugins/wp-ee-docs-command/' --url=
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先追踪导入的 Markdown 文件路径是在何处写入 post meta 的;该 issue 没有提供文件名或测试名。在移动或重命名 plugin-directory 后重现该行为,然后验证已存储的引用无需使用文档中所述的 wp search-replace 命令仍然可用。

由索引模型根据 Issue 内容生成。

评估

技术栈
php, wordpress
领域
backend, cli
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。