Ticket #23882: 23882.3.patch
| File 23882.3.patch, 864 bytes (added by , 11 years ago) |
|---|
-
src/wp-includes/link-template.php
14 14 * 15 15 * @param int|WP_Post $id Optional. Post ID or post object. Default current post. 16 16 */ 17 function the_permalink( $id = 0) {17 function the_permalink( $id = false ) { 18 18 /** 19 19 * Filter the display of the permalink for the current post. 20 20 * 21 21 * @since 1.5.0 22 * @since 4.4.0 $id param added 22 23 * 23 24 * @param string $permalink The permalink for the current post. 25 * @param int|WP_Post $id Optional. Post ID or post object. Default current post. 24 26 */ 25 echo esc_url( apply_filters( 'the_permalink', get_permalink( $id ) ) );27 echo esc_url( apply_filters( 'the_permalink', get_permalink( $id ), $id ) ); 26 28 } 27 29 28 30 /**