Prevent the slug of a trashed page or post from conflicting with the slug desired for a new page or post. NOTE: NO LONGER NECESSARY AS OF WORDPRESS 4.
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:
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.
Requires: 3.5 or higher
Compatible up to: 4.4.7
Last Updated: 8 months ago
Active Installs: 100+
Got something to say? Need help?