Make WordPress Core


Ignore:
Timestamp:
08/04/2008 05:16:26 AM (16 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.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-admin/edit-page-form.php

    r8509 r8531  
    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.