Make WordPress Core


Ignore:
Timestamp:
04/23/2008 10:58:36 PM (16 years ago)
Author:
markjaquith
Message:

Fix redirect issue with null post_ID equaling null url_to_postid(). fixes #6674 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r7747 r7794  
    6262if ( !empty($_REQUEST['popupurl']) )
    6363    echo clean_url(stripslashes($_REQUEST['popupurl']));
    64 else if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && url_to_postid(wp_get_referer()) == $post_ID  )
     64else if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && $post_ID && url_to_postid(wp_get_referer()) === $post_ID  )
    6565    echo 'redo';
    6666else
Note: See TracChangeset for help on using the changeset viewer.