Make WordPress Core

Changeset 6741


Ignore:
Timestamp:
02/06/2008 09:40:52 PM (17 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.