Ticket #23882: 23882.2.patch
File 23882.2.patch, 773 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/link-template.php
10 10 * Display the permalink for the current post. 11 11 * 12 12 * @since 1.2.0 13 * @since 4.4.0 $id param 14 * 15 * @param int $id Optional. Post ID. 13 16 */ 14 function the_permalink( ) {17 function the_permalink( $id = 0 ) { 15 18 /** 16 19 * Filter the display of the permalink for the current post. 17 20 * … … 19 22 * 20 23 * @param string $permalink The permalink for the current post. 21 24 */ 22 echo esc_url( apply_filters( 'the_permalink', get_permalink( ) ) );25 echo esc_url( apply_filters( 'the_permalink', get_permalink( $id ) ) ); 23 26 } 24 27 25 28 /**