mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user