Ticket #23882: 23882.patch
File 23882.patch, 611 bytes (added by , 12 years ago) |
---|
-
wp-includes/link-template.php
11 11 * 12 12 * @since 1.2.0 13 13 * @uses apply_filters() Calls 'the_permalink' filter on the permalink string. 14 * 15 * @param int $id Optional. Post ID. 16 * @param bool $leavename Optional, defaults to false. Whether to keep post name or page name. 14 17 */ 15 function the_permalink( ) {16 echo esc_url( apply_filters( 'the_permalink', get_permalink( ) ) );18 function the_permalink( $id = 0, $leavename = false ) { 19 echo esc_url( apply_filters( 'the_permalink', get_permalink( $id, $leavename ) ) ); 17 20 }