WordPress.org

Make WordPress Core

Ticket #20480: 20480.patch

File 20480.patch, 620 bytes (added by johnbillion, 23 months ago)
  • wp-includes/post.php

     
    28372837 
    28382838        global $wpdb, $wp_rewrite; 
    28392839 
     2840        $original_slug = $slug; 
     2841 
    28402842        $feeds = $wp_rewrite->feeds; 
    28412843        if ( ! is_array( $feeds ) ) 
    28422844                $feeds = array(); 
     
    28872889                } 
    28882890        } 
    28892891 
    2890         return apply_filters( 'wp_unique_post_slug', $slug, $post_ID, $post_status, $post_type, $post_parent ); 
     2892        return apply_filters( 'wp_unique_post_slug', $slug, $post_ID, $post_status, $post_type, $post_parent, $original_slug ); 
    28912893} 
    28922894 
    28932895/**