Ticket #4328: 4328.diff
File 4328.diff, 1.1 KB (added by , 15 years ago) |
---|
-
wp-includes/default-filters.php
233 233 add_action( 'template_redirect', 'wp_old_slug_redirect' ); 234 234 add_action( 'edit_post', 'wp_check_for_changed_slugs' ); 235 235 add_action( 'edit_form_advanced', 'wp_remember_old_slug' ); 236 add_action( 'edit_page_form', 'wp_remember_old_slug' ); 236 237 add_action( 'init', '_show_post_preview' ); 237 238 238 239 // Timezone -
wp-includes/post.php
3611 3611 $post = &get_post($post_id); 3612 3612 3613 3613 // we're only concerned with published posts 3614 if ( $post->post_status != 'publish' || $post->post_type != 'post')3614 if ( 'publish' != $post->post_status || ( 'post' != $post->post_type && 'page' != $post->post_type ) ) 3615 3615 return $post_id; 3616 3616 3617 3617 // only bother if the slug has changed