🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
No Slug Conflicts with Trash icon
Möglicherweise aufgegeben Tested up to 4.4.34 #19 in coffee2code

No Slug Conflicts with Trash

NOTE: WordPress 4.5 incorporated the functionality of this plugin and thus it is no longer needed unless you’re still running an older version of WP.

Aktive Installationen10+10+ Stufe
Downloads · 30d88▲ +114.6% vs prev. 30d
Wertung5/52 Bewertungen
Gesundheits-Score30/100In Gefahr
Downloads aller Zeiten4.5KSince Nov 2013
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 3.5PHP ANY
Downloads · 7d27▲ 3.4× week over week
Unser Urteil

Betrachten Sie eine Alternative

No Slug Conflicts with Trash shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 5/5 and was last updated 10 years ago, and scores 30/100 on our health check.

  • Kleine Benutzerbasis (10+ aktive Installationen)
  • Bisher sehr wenige Bewertungen
  • Kein Update in 10 Jahren
  • Only tested up to WordPress 4.4 (latest is 7.1)

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

369Sep 7Oct 21Dec 5
Gestern5
Täglicher Durchschnitt (1 Jahr)1
Spitzentag126. November 2026
Letzte 12 Monate483

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where No Slug Conflicts with Trash stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
Coffee2Code #53 65 Beste Coffee2Code-Plugins →
Post >100 10,000 Beste Post-Plugins →
post_name #67 90 Best post_name plugins →
Schnecke >100 8,786 Best slug plugins →
trash >100 1,923 Best trash plugins →

Versionsübernahme

Anteil aktiver Sites pro Release.

  • 1.2100.0%

Bewertungsaufschlüsselung

★★★★★★★★★★ 5 from 2 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About No Slug Conflicts with Trash

From the official readme · v1.2

Beschreibung

NOTE: WordPress 4.5 incorporated the functionality of this plugin and thus it is no longer needed unless you’re still running an older version of WP.

This plugin implements the belief that a trashed page or post should not in any way conflict with a new page or post when it comes to slugs. In essence, a new page or post should take precedence over anything in the trash. After all, the page/post is in the trash for a reason.

By default, WordPress takes into consideration posts and pages that have been trashed when deciding if the slug for a new post is already in use. Obviously, in general, WordPress should not allow duplicate slugs because that could interfere with permalinks. The thinking behind WordPress’s handling of the situation is that trashed posts/pages are still technically present, just inaccessible. It is possible that an author or admin would choose to restore a post from the trash, which WordPress feels should then occupy that same permalink as before it was trashed.

If what WordPress does is unclear, here’s an example to help clarify things:

  • WordPress ships with a page called “About” with the slug of “about”. The page’s URL would be http://yoursite/about/
  • Let’s say you trash that page and start a new page with the name “About”.
  • Due to a trashed page having the slug that would normally have been assigned to the new page (“about”), the new page gets the slug of “about-2”, resulting in the page’s URL being http://yoursite/about-2/

With this plugin, for this example, the new “About” page would get the slug “about” as one would hope.

That said, the plugin tries its best to restore untrashed posts to their original slug. The only time it fails to do so is if a new page or post has claimed the trashed post’s original slug, in which case the untrashed post is assigned a new slug.

See other sections of the documentation for more insight into the plugin’s functionality. See WP core ticket #11863 for discussion on the matter.

Links: Plugin Homepage | Plugin Directory Page | Author Homepage

The Solution Explained

An overview of the approach employed by the plugin to resolve the issue of slugs potentially conflicting with posts in the trash.

What WordPress does

In order to understand the crux of the implemented solution, a quick refresher on unique slug handling by WP:

Before published use, a desired slug is passed to wp_unique_post_slug() and a safe slug is returned. The safe slug may differ from the desired slug if any existing post (including a trashed post) has that slug (or, less likely, is invalid for permalink reasons such as feeds or date archives).

In order to prevent a trashed post’s slug from conflicting with a new post, this plugin takes an approach that is comprised of two primary tasks:

1. Permit a post to use a slug that conflicts with a trashed post.

The plugin hooks the ‘wp_unique_post_slug’ filter. If the desired slug matches the safe slug, the desired slug is unique and nothing needs to be done.

When the two slugs don’t match, it has to determine if the conflict is due to a trashed post or not, so it attempts to find a trashed post with the desired slug.

  • If no such trashed post is found, the conflict is with a live post (or was an otherwise unsuitable slug) so the safe slug must be used by the new post (so, again, nothing needs to be done).
  • If such a trashed post is found, then the plugin simply inverses the traditional behavior of wp_unique_post_slug(): give the trashed post the safe slug and return the desired slug for use by the new post (rather than having the trashed post retain its slug and forcing the new post to use the safe slug). In order to be able to restore a trashed post to its original slug, the trashed post’s original slug is stored in postmeta.

2. Restore a trashed post to its original slug, if necessary and possible.

For a post transitioning away from the ‘trash’ post status, check to see if its slug was rewritten (denoted by the presence of the postmeta field only assigned if the original slug was changed due to a conflict while the post was in the trash).

If there was no original slug, the slug was never changed and nothing more needs to happen.

When there is an original slug, check to see if that slug is still in use by a non-trashed post.

  • If not, restore the post slug to the original value.
  • If so, there is no recourse but to leave the post slug as-is (it is guaranteed to be unique already).

In either case, the postmeta field for the original slug value gets deleted since the now untrashed post is exposed in some fashion with its current slug and should abide by it going forward.

Installation

  1. Unzip no-slug-conflicts-with-trash.zip inside the plugins directory for your site (typically /wp-content/plugins/). Or install via the built-in WordPress plugin installer)
  2. Aktivieren Sie das Plugin über das Admin-Menü „Plugins“ in WordPress

Änderungsprotokoll

Recommended update: WordPress 4.5 incorporated the functionality of this plugin and thus it is no longer needed for WP 4.5+. It will perform necessary data migrations to ensure trashed slug restoration continues to work and then deactivate itself.

1.2 (2016-05-07)

Highlights: WordPress 4.5 has effectively implemented the functionality provided by this plugin, thus it is no longer needed.

  • New: Self-deactivate and show deprecation notice if plugin is active under WP 4.5+ and don’t do anything else.
  • New: Migrate existing meta keys that stored original post slugs to the meta key used by WP.
  • New: Add unit tests that only run under versions of WP equal to or greater than 4.5.
  • Change: Prevent existing tests from running under versions of WP older than 4.5.
  • Change: Prevent web invocation of unit test bootstrap.php.
  • Change: Prevent direct loading of test file.
  • Change: Add ‘Text Domain’ plugin header.
  • New: Create empty index.php to prevent files from being listed if web server has enabled directory listings.
  • New: Add LICENSE file.

1.1 (2015-12-08)

Highlights:

  • This minor release sync’s the plugin’s checks with those recently added/changed in core and enhances the unit tests.

Details:

  • Change: Re-sync get_trashed_post() with changes to wp_unique_post_slug()
    • Check for slugs that could result in URLs that conflict with date archives
    • Simplify post hierarchy checking for hierarchical post types
  • Change: Modify many unit tests to use a dataProvider to allow testing for both posts and pages

1.0.4 (2015-12-07)

Highlights:

  • This is a very minor update primarily consisting of documentation improvements, including an addition that provides an overview of the plugin’s approach to the problem it solves and documentation for all unit tests.

Details:

  • Add: Create new section in readme explaining the implemented solution to the trash slug conflict problem
  • Add: Document the purpose and expectations of each unit test
  • Change: Improvements to existing documentation
  • Change: Switch a majority of unit tests to work with posts rather than pages (though it doesn’t really matter)
  • Change: Minor code formatting changes (braces)
  • Change: Explicitly declare methods in unit tests as public
  • Change: Minor improvements to inline docs and test docs
  • Change: Note compatibility through WP 4.4+
  • Change: Update copyright date (2016)

1.0.3 (2015-02-11)

  • Note compatibility through WP 4.1+
  • Update copyright date (2015)

1.0.2 (2014-08-25)

  • Add an FAQ question regarding why WP core doesn’t do things the way the plugin does things
  • Minor code reformatting (bracing)
  • Change documentation links to wp.org to be https
  • Change donate link
  • Note compatibility through WP 4.0+
  • Add plugin icon

1.0.1

  • Add c2c_No_Slug_Conflicts_With_Trash::version() to return version number for plugin (with unit test)
  • Note compatibility through WP 3.8+
  • Update copyright date (2014)
  • Change donate link

Vollständiges Änderungsprotokoll auf WordPress.org →

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best No Slug Conflicts with Trash alternatives

All coffee2code plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
1 Disable Search Disable Search Disable the built-in front-end search capabilities of WordPress. von Scott Reilly 30K+ ★★★★★★★★★★ 4.7 (16) Vor 2 Jahren 40
2 Configure SMTP Configure SMTP Configure SMTP mailing in WordPress, including support for sending email via SSL/TLS (such… von Scott Reilly 5K+ ★★★★★★★★★★ 4.9 (45) Vor 2 Jahren 46
3 Ein Klick Kommentare schließen Ein Klick Kommentare schließen Schließen oder öffnen Sie Kommentare für einen Beitrag oder eine Seite bequem mit einem Klick vom Administrator… von Scott Reilly 5K+ ★★★★★★★★★★ 4.9 (10) Vor 2 Jahren 50
4 Text Replace Text Replace Replace text with other text. Handy for creating shortcuts to common, lengthy, or… von Scott Reilly 3K+ ★★★★★★★★★★ 4.4 (18) Vor 5 Jahren 38
5 Duplicate Widget Duplicate Widget A widget that can act as a duplicate of another widget (for synchronized use in another… von Scott Reilly 1K+ ★★★★★★★★★★ 4.3 (12) Vor 9 Jahren 36
6 Force Admin Color Scheme Force Admin Color Scheme Force a single admin color scheme for all users of the site. von Scott Reilly 500+ ★★★★★★★★★★ 5 (2) Vor 2 Jahren 43
7 Einzelkategorie Permalink Einzelkategorie Permalink Reduzieren Sie Permalinks (Kategorie oder Post), die die gesamte Hierarchie von Kategorien enthalten, auf nur… von Scott Reilly 400+ ★★★★★★★★★★ 5 (5) Vor 5 Jahren 39
8 Hide Broken Shortcodes Hide Broken Shortcodes Prevent broken shortcodes from appearing in posts and pages. von Scott Reilly 400+ ★★★★★★★★★★ 4.5 (10) vor 7 Monaten 52
9 Years Ago Today Years Ago Today Lists posts published to your site on this day in previous years via admin dashboard… von Scott Reilly 100+ ★★★★★★★★★★ 5 (6) Vor 6 Monaten 59
10 Disable Directory Listings Disable Directory Listings Prevent virtual directory listing services from listing the contents of directories, and/or… von Scott Reilly 90+ ★★★★★★★★★★ 5 (1) Vor 15 Jahren 32

Fragen und Antworten

No Slug Conflicts with Trash: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is No Slug Conflicts with Trash free?

Yes. No Slug Conflicts with Trash is free to download and use from the official WordPress.org plugin directory.

Is No Slug Conflicts with Trash safe to use in 2026?

No Slug Conflicts with Trash shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 5/5 and was last updated 10 years ago, and scores 30/100 on our health check.

How many websites use No Slug Conflicts with Trash?

No Slug Conflicts with Trash is active on 10+ WordPress websites and has been downloaded 4,526 times since it launched in November 2013. It was downloaded 88 times in the last 30 days.

Does No Slug Conflicts with Trash work with WordPress 7.1?

No Slug Conflicts with Trash is officially tested up to WordPress 4.4.34, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was No Slug Conflicts with Trash last updated?

The latest version, 1.2, was released on June 26, 2016 (10 years ago).

Who makes No Slug Conflicts with Trash?

No Slug Conflicts with Trash is developed and maintained by Scott Reilly.

What are the best alternatives to No Slug Conflicts with Trash?

The most popular alternatives to No Slug Conflicts with Trash are Disable Search (30K+ installs), Configure SMTP (5K+ installs) and One Click Close Comments (5K+ installs).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen