Import › Choose: leave a kind of content behind (tags, menus, comments, media…)

未关闭
#656 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
15/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
laravel, php, postgresql
领域
data

调研方向

This is a cross-cutting feature across the Tools › Import › Choose screen, the "What comes across" list, the "Items whose author is gone" setting, and the recurring catch-up import. Start by tracing how the import currently decides which kinds to bring and how the report is built, since leaving a kind behind must appear there as a count, not an error. Done means each unticked kind stays out of WordPress-equivalent output, the side effects listed in the issue hold, and the choice persists across catch-ups; the issue has no design agreed yet, so ask the maintainer first.

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

描述

area/import type/enhancement when/soon

The import brings everything "What comes across" lists: people, categories, tags, media, posts, pages, comments, menus, redirects and settings. There's no way to leave a kind behind, so someone who doesn't want the old tags, menus or comments has to import them and trash them by hand afterwards. WordPress's own exporter lets a person choose what to export.

Expected, on Tools › Import › Choose:

  • each row of "What comes across" has a tick, on by default; an unticked kind stays in WordPress;
  • what leaving a kind behind does to the rest is said beside it, before the start:
    • media left behind: images in posts stay as links to the old site's files (as unticked "images from other sites" do today), featured images are left empty;
    • categories or tags left behind: posts come without them, and their old addresses get no redirect;
    • people left behind: every item belongs to the person chosen under "Items whose author is gone";
    • pages or posts left behind: links to them in other items are kept as links to the old site;
    • comments, menus, redirects, settings: simply not brought;
  • posts and pages can also be narrowed by status (published only, or with drafts and scheduled);
  • the choice is kept with the import, so each catch-up after it leaves the same kinds behind, and the report lists what was left behind with its count, never as an error.

🤖 Generated with Claude Code

主要语言
PHP
星标
1
派生
1
平均合并
1 小时 40 分钟
30 天内合并 PR
143

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

temecms/teme 的其他 Issue

查看 temecms/teme 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

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