WordPress.org

Make WordPress Core

Changeset 7740


Ignore:
Timestamp:
04/18/08 18:22:33 (6 years ago)
Author:
ryan
Message:

Don't run url_to_postid on admin pages.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r7739 r7740  
    6161if ( !empty($_REQUEST['popupurl']) ) 
    6262    echo clean_url(stripslashes($_REQUEST['popupurl'])); 
    63 else if ( url_to_postid(wp_get_referer()) == $post_ID && strpos( wp_get_referer(), '/wp-admin/' ) === false ) 
     63else if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && url_to_postid(wp_get_referer()) == $post_ID ) 
    6464    echo 'redo'; 
    6565else 
  • trunk/wp-admin/edit-page-form.php

    r7529 r7740  
    4949<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" /> 
    5050<input name="referredby" type="hidden" id="referredby" value="<?php 
    51 if ( url_to_postid(wp_get_referer()) == $post_ID && strpos( wp_get_referer(), '/wp-admin/' ) === false ) 
     51if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && url_to_postid(wp_get_referer()) == $post_ID ) 
    5252    echo 'redo'; 
    5353else 
Note: See TracChangeset for help on using the changeset viewer.