Make WordPress Core

Ticket #24164: 24164.patch

File 24164.patch, 1.1 KB (added by ericmann, 11 years ago)

Deprecate in docblocks only

  • wp-includes/link-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    7272 * Retrieve full permalink for current post or post ID.
    7373 *
    7474 * @since 1.0.0
     75 * @deprecated 3.6.0
     76 * @deprecated Use get_the_permalink()
    7577 *
    7678 * @param int $id Optional. Post ID.
    7779 * @param bool $leavename Optional, defaults to false. Whether to keep post name or page name.
    7880 * @return string
    7981 */
    8082function get_permalink( $id = 0, $leavename = false ) {
     83        return get_the_permalink( $id, $leavename );
     84}
     85
     86/**
     87 * Retrieve full permalink for current post or post ID.
     88 *
     89 * @since 3.6.0
     90 *
     91 * @param int $id Optional. Post ID.
     92 * @param bool $leavename Optional, defaults to false. Whether to keep post name or page name.
     93 * @return string
     94 */
     95function get_the_permalink( $id = 0, $leavename = false ) {
    8196        $rewritecode = array(
    8297                '%year%',
    8398                '%monthnum%',