WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/26/2010 05:27:18 PM (10 years ago)
Author:
westi
Message:

Move the escaping into get_guid() so we don't have to repeat ourselves. See #13555.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r14753 r14949  
    128128 * post. The reason you should not use it as a link, is because of moving the
    129129 * blog across domains.
     130 *
     131 * Url is escaped to make it xml safe
    130132 *
    131133 * @since 1.5.0
     
    134136 */
    135137function the_guid( $id = 0 ) {
    136     echo get_the_guid($id);
     138    echo esc_url( get_the_guid($id) );
    137139}
    138140
Note: See TracChangeset for help on using the changeset viewer.