WordPress.org

Make WordPress Core

Changeset 8530


Ignore:
Timestamp:
08/04/08 05:15:36 (6 years ago)
Author:
azaozz
Message:

Type error when redirecting after post save, url_to_postid() may return the id as int or str, for 2.7

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r8508 r8530  
    7777if ( !empty($_REQUEST['popupurl']) ) 
    7878    echo clean_url(stripslashes($_REQUEST['popupurl'])); 
    79 else if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && $post_ID && url_to_postid(wp_get_referer()) === $post_ID  ) 
     79else if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && $post_ID && url_to_postid(wp_get_referer()) == $post_ID  ) 
    8080    echo 'redo'; 
    8181else 
  • trunk/wp-admin/edit-page-form.php

    r8508 r8530  
    6262<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" /> 
    6363<input name="referredby" type="hidden" id="referredby" value="<?php 
    64 if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && $post_ID && url_to_postid(wp_get_referer()) === $post_ID ) 
     64if ( 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.