WordPress.org

Make WordPress Core

Ticket #24164: 24164.diff

File 24164.diff, 760 bytes (added by wonderboymusic, 7 years ago)
  • src/wp-includes/link-template.php

     
    6969}
    7070
    7171/**
     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 */
     80function get_the_permalink( $id = 0, $leavename = false ) {
     81        return get_permalink( $id, $leavename );
     82}
     83
     84/**
    7285 * Retrieve full permalink for current post or post ID.
    7386 *
    7487 * @since 1.0.0