WordPress.org

Make WordPress Core

Changeset 7762


Ignore:
Timestamp:
04/21/2008 07:45:03 PM (10 years ago)
Author:
ryan
Message:

Don't run url_to_postid on admin pages. For 2.5

Location:
branches/2.5/wp-admin
Files:
2 edited

Legend:

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

    r7709 r7762  
    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
  • branches/2.5/wp-admin/edit-page-form.php

    r7751 r7762  
    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.