WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/18/2008 11:38:21 PM (13 years ago)
Author:
ryan
Message:

Post revisions from mdawaffe. see #6775

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r7564 r7747  
    7878    if ( empty($post->ID) ) wp_die( __("You attempted to edit a post that doesn't exist. Perhaps it was deleted?") );
    7979
    80     if ( 'page' == $post->post_type ) {
    81         wp_redirect("page.php?action=edit&post=$post_ID");
     80    if ( 'post' != $post->post_type ) {
     81        wp_redirect( get_edit_post_link( $post->ID, 'url' ) );
    8282        exit();
    8383    }
Note: See TracChangeset for help on using the changeset viewer.