Changeset 6741

Show
Ignore:
Timestamp:
02/06/08 21:40:52 (7 months ago)
Author:
ryan
Message:

Redirect if post not specified. Props lloydbudd. fixes #5754

Files:

Legend:

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

    r6581 r6741  
    4747    $title = __('Edit'); 
    4848    $editing = true; 
     49 
     50    if ( empty( $_GET['post'] ) ) { 
     51        wp_redirect("post.php"); 
     52        exit(); 
     53    } 
    4954    $post_ID = $p = (int) $_GET['post']; 
    5055    $post = get_post($post_ID);