[wp-meta] [Making WordPress.org] #3421: WP-CLI command reference generates duplicate posts
Making WordPress.org
noreply at wordpress.org
Mon Feb 5 20:51:28 UTC 2018
#3421: WP-CLI command reference generates duplicate posts
---------------------------+-----------------
Reporter: schlessera | Owner:
Type: defect | Status: new
Priority: high | Milestone:
Component: Developer Hub | Keywords:
---------------------------+-----------------
The cron job that updates the WP-CLI command reference is currently
generating massive amounts of duplicate posts.
This issue is due to the fact that CPT slugs share a namespace with other
CPTs, and we hit this with commands like `embed`. The entire
synchronization mechanism is built around the URL, and the `embed` command
that has a conflict with _some_ other post on the site is created under
the slug `embed-2`. This causes every check to detect the entry as an
existing parent to fail and thus parents are re-created all the time.
I have a patch that normalizes the command path so that these added
numeric suffixes are removed from the path that is used for all checks.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/3421>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list