Yoast / Yoast/duplicate-post

Prevent WPML from creating a new draft in every language

Open
#40 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
53
Forks
38
Avg merge
4d 8h
Merged PRs (30d)
1

Description

Hi!

First for sharing the plugin, it works great :)

Only issue I have encountered: With WMPL installed, duplicating a post creates a new draft in every language.

In my opinion, the ideal workflow would be:

  1. You clone a page in English (to use it as a starting point). (So you only have a new draft in English.)
  2. You edit the new draft (change texts) and publish it in English.
  3. Once the page is complete, you translate it using WPML.

So I don't see the point of having a new draft in every language every time you clone a page.

Is this the expected behavior? Is there any way to disable it and have only one new draft (for a specific language)?

Thanks again!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing post duplication with WPML enabled and inspect the plugin's duplication workflow. Determine how language variants are created and where a single-language draft could be selected. Done means cloning a post creates only the requested language draft without generating drafts in every other language.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
content, localization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.