Make WordPress Core

Ticket #24248: guid-context.patch

File guid-context.patch, 646 bytes (added by meloniq, 12 years ago)

adds 'raw' context to get_post_field() call for 'guid' field

  • wp-includes/post.php

     
    26492649                        return 0;
    26502650                }
    26512651
    2652                 $guid = get_post_field( 'guid', $post_ID );
     2652                $guid = get_post_field( 'guid', $post_ID, 'raw' );
    26532653                $previous_status = get_post_field('post_status', $ID);
    26542654        } else {
    26552655                $previous_status = 'new';
     
    28412841                }
    28422842        }
    28432843
    2844         $current_guid = get_post_field( 'guid', $post_ID );
     2844        $current_guid = get_post_field( 'guid', $post_ID, 'raw' );
    28452845
    28462846        // Set GUID
    28472847        if ( !$update && '' == $current_guid )