[wp-trac] [WordPress Trac] #15726: Allow for "bad slugs" to be blocked in wp_unique_post_slug
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 7 22:55:06 UTC 2010
#15726: Allow for "bad slugs" to be blocked in wp_unique_post_slug
-------------------------+--------------------------------------------------
Reporter: westi | Owner: westi
Type: enhancement | Status: new
Priority: normal | Milestone: 3.1
Component: Post Types | Version: 3.0.2
Severity: minor | Keywords:
-------------------------+--------------------------------------------------
Comment(by westi):
We need to add some hooks to wp_unique_post_slug - one in each of the
three branches in these lines similar to this I think:
{{{f ( $post_name_check || in_array( $slug, $feeds ) || apply_filters(
'wp_unique_post_slug_is_bad_slug', false, .... ) {}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15726#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list