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

git-svn-id: https://develop.svn.wordpress.org/trunk@14949 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2010-05-26 17:27:18 +00:00
parent 12a45498b6
commit 31be303930
5 changed files with 8 additions and 6 deletions

View File

@@ -127,13 +127,15 @@ function get_the_title( $id = 0 ) {
* The guid will appear to be a link, but should not be used as an link to the
* post. The reason you should not use it as a link, is because of moving the
* blog across domains.
*
* Url is escaped to make it xml safe
*
* @since 1.5.0
*
* @param int $id Optional. Post ID.
*/
function the_guid( $id = 0 ) {
echo get_the_guid($id);
echo esc_url( get_the_guid($id) );
}
/**