Ticket #20480: 20480.patch
File 20480.patch, 620 bytes (added by , 12 years ago) |
---|
-
wp-includes/post.php
2837 2837 2838 2838 global $wpdb, $wp_rewrite; 2839 2839 2840 $original_slug = $slug; 2841 2840 2842 $feeds = $wp_rewrite->feeds; 2841 2843 if ( ! is_array( $feeds ) ) 2842 2844 $feeds = array(); … … 2887 2889 } 2888 2890 } 2889 2891 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 ); 2891 2893 } 2892 2894 2893 2895 /**