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/page.php

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