Ticket #24164: 24164.diff
File 24164.diff, 760 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/link-template.php
69 69 } 70 70 71 71 /** 72 * Alias for get_permalink() 73 * 74 * @since 3.9.0 75 * 76 * @param int|WP_Post $id Optional. Post ID or post object, defaults to the current post. 77 * @param bool $leavename Optional. Whether to keep post name or page name, defaults to false. 78 * @return string|bool The permalink URL or false if post does not exist. 79 */ 80 function get_the_permalink( $id = 0, $leavename = false ) { 81 return get_permalink( $id, $leavename ); 82 } 83 84 /** 72 85 * Retrieve full permalink for current post or post ID. 73 86 * 74 87 * @since 1.0.0