Ticket #14111: ticket.14111.2.diff
File ticket.14111.2.diff, 613 bytes (added by , 13 years ago) |
---|
-
wp-includes/post.php
2770 2770 if ( ! is_array( $feeds ) ) 2771 2771 $feeds = array(); 2772 2772 2773 $override_slug = apply_filters( "wp_unique_post_slug_{$post_type}", '', $slug, $post_ID, $post_status, $post_type, $post_parent ); 2774 2775 if ( $override_slug ) 2776 return $override_slug; 2777 2773 2778 $hierarchical_post_types = get_post_types( array('hierarchical' => true) ); 2774 2779 if ( 'attachment' == $post_type ) { 2775 2780 // Attachment slugs must be unique across all types.