WordPress.org

Make WordPress Core

Changeset 18546


Ignore:
Timestamp:
08/13/11 21:00:24 (3 years ago)
Author:
westi
Message:

Add a general filter to wp_unique_post_slug to allow for full customisation of the uniqueness functionality. Fixes #14111.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r18541 r18546  
    28412841    } 
    28422842 
    2843     return $slug; 
     2843    return apply_filters( 'wp_unique_post_slug', $slug, $post_ID, $post_status, $post_type, $post_parent ); 
    28442844} 
    28452845 
Note: See TracChangeset for help on using the changeset viewer.