Make WordPress Core


Ignore:
Timestamp:
02/17/2014 10:26:14 PM (11 years ago)
Author:
wonderboymusic
Message:

Use selected() where appropriate in touch_time(), page_template_dropdown(), and parent_dropdown(). Also, add proper docs.

Props meloniq, DrewAPicture.
Fixes #25889.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r27026 r27188  
    6767            break;
    6868    }
     69}
     70
     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 */
     80function get_the_permalink( $id = 0, $leavename = false ) {
     81    return get_permalink( $id, $leavename );
    6982}
    7083
Note: See TracChangeset for help on using the changeset viewer.