Yoast / Yoast/duplicate-post

Filter to change Rewrite & Republish Options

Open
#204 4 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

For Duplicate Post to be compatible with Polylang the taxonomy post_translations needs to be excluded from the rewrite and republish feature. Polylang has already done this for the duplicate post feature.

The filter duplicate_post_taxonomies_excludelist_filter does not work on the rewrite & republish feature due to use_filters being set to false.
https://github.com/Yoast/duplicate-post/blob/110537f13f9937da0c2adcfe012f9dd1d5b271f7/src/post-duplicator.php#L160

Due to there not being a filter available I have created a patch for myself: https://github.com/wearerequired/duplicate-post/commit/0869c1d1b825f78e6466fed4cad2cf1883e6d064

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 in src/post-duplicator.php at the linked code around line 160, where use_filters is set to false, and compare the existing duplicate-post filter with the Polylang integration and referenced patch. Done means the post_translations taxonomy can be excluded from Rewrite & Republish through an available filter.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.