Ticket #31080: 31080.diff
File 31080.diff, 1.0 KB (added by , 10 years ago) |
---|
-
wp-includes/post-template.php
159 159 } 160 160 161 161 /** 162 * Display the Post Global Unique Identifier ( guid).162 * Display the Post Global Unique Identifier (GUID). 163 163 * 164 * The guid will appear to be a link, but should not be used as an link to the165 * post. The reason you should not use it as a link, is because of moving the166 * blog across domains.164 * While GUIDs generated by WordPress will be URLs it is important to note 165 * that content migrated from other sources may have non-URL GUIDs which is 166 * valid according to the RSS 2.0 specification. 167 167 * 168 * Url is escaped to make it xml safe168 * The GUID is escaped to encode HTML entities and make it XML safe. 169 169 * 170 170 * @since 1.5.0 171 171 * 172 172 * @param int|WP_Post $id Optional. Post ID or post object. 173 173 */ 174 174 function the_guid( $id = 0 ) { 175 echo esc_ url( get_the_guid( $id ) );175 echo esc_html( get_the_guid( $id ) ); 176 176 } 177 177 178 178 /**