Ticket #31080: 31080.2.diff
File 31080.2.diff, 1.2 KB (added by , 10 years ago) |
---|
-
wp-includes/default-filters.php
167 167 add_filter( 'comment_text_rss', 'esc_html' ); 168 168 add_filter( 'bloginfo_rss', 'ent2ncr', 8 ); 169 169 add_filter( 'the_author', 'ent2ncr', 8 ); 170 add_filter( 'the_guid', 'esc_url' ); 170 171 171 172 // Misc filters 172 173 add_filter( 'option_ping_sites', 'privacy_ping_filter' ); -
wp-includes/post-template.php
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 /** 176 * Filter the escaped the Global Unique Identifier (guid) of the post. 177 * 178 * @since 4.2.0 179 * 180 * @param string $post_guid Escaped Global Unique Identifier (guid) of the post. 181 */ 182 echo apply_filters( 'the_guid', get_the_guid( $id ) ); 176 183 } 177 184 178 185 /**