From 0c6d0349f444cd592089b126566709a04bd76683 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sat, 13 Aug 2011 21:00:24 +0000 Subject: [PATCH] Add a general filter to wp_unique_post_slug to allow for full customisation of the uniqueness functionality. Fixes #14111. git-svn-id: https://develop.svn.wordpress.org/trunk@18546 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 09ab918ff3..5eae599cc0 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -2840,7 +2840,7 @@ function wp_unique_post_slug( $slug, $post_ID, $post_status, $post_type, $post_p } } - return $slug; + return apply_filters( 'wp_unique_post_slug', $slug, $post_ID, $post_status, $post_type, $post_parent ); } /**