WordPress.org

Make WordPress Core

Ticket #14111: ticket.14111.2.diff

File ticket.14111.2.diff, 613 bytes (added by ptahdunbar, 4 years ago)
  • wp-includes/post.php

     
    27702770        if ( ! is_array( $feeds ) ) 
    27712771                $feeds = array(); 
    27722772 
     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 
    27732778        $hierarchical_post_types = get_post_types( array('hierarchical' => true) ); 
    27742779        if ( 'attachment' == $post_type ) { 
    27752780                // Attachment slugs must be unique across all types.