Ticket #24248: guid-context.patch
File guid-context.patch, 646 bytes (added by , 12 years ago) |
---|
-
wp-includes/post.php
2649 2649 return 0; 2650 2650 } 2651 2651 2652 $guid = get_post_field( 'guid', $post_ID );2652 $guid = get_post_field( 'guid', $post_ID, 'raw' ); 2653 2653 $previous_status = get_post_field('post_status', $ID); 2654 2654 } else { 2655 2655 $previous_status = 'new'; … … 2841 2841 } 2842 2842 } 2843 2843 2844 $current_guid = get_post_field( 'guid', $post_ID );2844 $current_guid = get_post_field( 'guid', $post_ID, 'raw' ); 2845 2845 2846 2846 // Set GUID 2847 2847 if ( !$update && '' == $current_guid )