WordPress.org

Make WordPress Core

Ticket #24164: 24164-2.patch

File 24164-2.patch, 46.8 KB (added by ericmann, 5 years ago)

Deprecate in docblocks, and replace all uses

  • wp-includes/link-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    1313 * @uses apply_filters() Calls 'the_permalink' filter on the permalink string.
    1414 */
    1515function the_permalink() {
    16         echo esc_url( apply_filters( 'the_permalink', get_permalink() ) );
     16        echo esc_url( apply_filters( 'the_permalink', get_the_permalink() ) );
    1717}
    1818
    1919/**
     
    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%',
     
    222237        if ( !empty( $deprecated ) )
    223238                _deprecated_argument( __FUNCTION__, '1.3' );
    224239
    225         return get_permalink($post_id);
     240        return get_the_permalink($post_id);
    226241}
    227242
    228243/**
     
    307322                if ( 'page' == $parent->post_type )
    308323                        $parentlink = _get_page_link( $post->post_parent ); // Ignores page_on_front
    309324                else
    310                         $parentlink = get_permalink( $post->post_parent );
     325                        $parentlink = get_the_permalink( $post->post_parent );
    311326
    312327                if ( is_numeric($post->post_name) || false !== strpos(get_option('permalink_structure'), '%category%') )
    313328                        $name = 'attachment/' . $post->post_name; // <permalink>/<int>/ is paged so we use the explicit attachment marker
     
    475490                if ( 'page' == get_option('show_on_front') && $post_id == get_option('page_on_front') )
    476491                        $url = _get_page_link( $post_id );
    477492                else
    478                         $url = get_permalink($post_id);
     493                        $url = get_the_permalink($post_id);
    479494
    480495                $url = trailingslashit($url) . 'feed';
    481496                if ( $feed != get_default_feed() )
     
    12311246
    12321247        $link = $previous ? "<link rel='prev' title='" : "<link rel='next' title='";
    12331248        $link .= esc_attr( $title );
    1234         $link .= "' href='" . get_permalink($post) . "' />\n";
     1249        $link .= "' href='" . get_the_permalink($post) . "' />\n";
    12351250
    12361251        $adjacent = $previous ? 'previous' : 'next';
    12371252        return apply_filters( "{$adjacent}_post_rel_link", $link );
     
    13931408                $date = mysql2date( get_option( 'date_format' ), $post->post_date );
    13941409                $rel = $previous ? 'prev' : 'next';
    13951410
    1396                 $string = '<a href="' . get_permalink( $post ) . '" rel="'.$rel.'">';
     1411                $string = '<a href="' . get_the_permalink( $post ) . '" rel="'.$rel.'">';
    13971412                $inlink = str_replace( '%title', $title, $link );
    13981413                $inlink = str_replace( '%date', $date, $inlink );
    13991414                $inlink = $string . $inlink . '</a>';
     
    16901705
    16911706        $pagenum = (int) $pagenum;
    16921707
    1693         $result = get_permalink();
     1708        $result = get_the_permalink();
    16941709
    16951710        if ( 'newest' == get_option('default_comments_page') ) {
    16961711                if ( $pagenum != $max_page ) {
     
    18231838                'add_fragment' => '#comments'
    18241839        );
    18251840        if ( $wp_rewrite->using_permalinks() )
    1826                 $defaults['base'] = user_trailingslashit(trailingslashit(get_permalink()) . 'comment-page-%#%', 'commentpaged');
     1841                $defaults['base'] = user_trailingslashit(trailingslashit(get_the_permalink()) . 'comment-page-%#%', 'commentpaged');
    18271842
    18281843        $args = wp_parse_args( $args, $defaults );
    18291844        $page_links = paginate_links( $args );
     
    23182333        if ( !$id = $wp_the_query->get_queried_object_id() )
    23192334                return;
    23202335
    2321         $link = get_permalink( $id );
     2336        $link = get_the_permalink( $id );
    23222337
    23232338        if ( $page = get_query_var('cpage') )
    23242339                $link = get_comments_pagenum_link( $page );
  • wp-includes/comment-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    497497                        $args['page'] = ( !empty($in_comment_loop) ) ? get_query_var('cpage') : get_page_of_comment( $comment->comment_ID, $args );
    498498
    499499                if ( $wp_rewrite->using_permalinks() )
    500                         $link = user_trailingslashit( trailingslashit( get_permalink( $comment->comment_post_ID ) ) . 'comment-page-' . $args['page'], 'comment' );
     500                        $link = user_trailingslashit( trailingslashit( get_the_permalink( $comment->comment_post_ID ) ) . 'comment-page-' . $args['page'], 'comment' );
    501501                else
    502                         $link = add_query_arg( 'cpage', $args['page'], get_permalink( $comment->comment_post_ID ) );
     502                        $link = add_query_arg( 'cpage', $args['page'], get_the_permalink( $comment->comment_post_ID ) );
    503503        } else {
    504                 $link = get_permalink( $comment->comment_post_ID );
     504                $link = get_the_permalink( $comment->comment_post_ID );
    505505        }
    506506
    507507        return apply_filters( 'get_comment_link', $link . '#comment-' . $comment->comment_ID, $comment, $args );
     
    516516 * @return string The link to the comments
    517517 */
    518518function get_comments_link($post_id = 0) {
    519         return apply_filters( 'get_comments_link', get_permalink( $post_id ) . '#comments', $post_id );
     519        return apply_filters( 'get_comments_link', get_the_permalink( $post_id ) . '#comments', $post_id );
    520520}
    521521
    522522/**
     
    705705 */
    706706function get_trackback_url() {
    707707        if ( '' != get_option('permalink_structure') ) {
    708                 $tb_url = trailingslashit(get_permalink()) . user_trailingslashit('trackback', 'single_trackback');
     708                $tb_url = trailingslashit(get_the_permalink()) . user_trailingslashit('trackback', 'single_trackback');
    709709        } else {
    710710                $tb_url = get_option('siteurl') . '/wp-trackback.php?p=' . get_the_ID();
    711711        }
     
    997997                echo '" onclick="wpopen(this.href); return false"';
    998998        } else { // if comments_popup_script() is not in the template, display simple comment link
    999999                if ( 0 == $number )
    1000                         echo get_permalink() . '#respond';
     1000                        echo get_the_permalink() . '#respond';
    10011001                else
    10021002                        comments_link();
    10031003                echo '"';
     
    10561056        $link = '';
    10571057
    10581058        if ( get_option('comment_registration') && !$user_ID )
    1059                 $link = '<a rel="nofollow" class="comment-reply-login" href="' . esc_url( wp_login_url( get_permalink() ) ) . '">' . $login_text . '</a>';
     1059                $link = '<a rel="nofollow" class="comment-reply-login" href="' . esc_url( wp_login_url( get_the_permalink() ) ) . '">' . $login_text . '</a>';
    10601060        else
    10611061                $link = "<a class='comment-reply-link' href='" . esc_url( add_query_arg( 'replytocom', $comment->comment_ID ) ) . "#" . $respond_id . "' onclick='return addComment.moveForm(\"$add_below-$comment->comment_ID\", \"$comment->comment_ID\", \"$respond_id\", \"$post->ID\")'>$reply_text</a>";
    10621062        return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post);
     
    11071107                return false;
    11081108
    11091109        if ( get_option('comment_registration') && !$user_ID ) {
    1110                 $link = '<a rel="nofollow" href="' . wp_login_url( get_permalink() ) . '">' . $login_text . '</a>';
     1110                $link = '<a rel="nofollow" href="' . wp_login_url( get_the_permalink() ) . '">' . $login_text . '</a>';
    11111111        } else {
    1112                 $link = "<a rel='nofollow' class='comment-reply-link' href='" . get_permalink($post->ID) . "#$respond_id' onclick='return addComment.moveForm(\"$add_below-$post->ID\", \"0\", \"$respond_id\", \"$post->ID\")'>$reply_text</a>";
     1112                $link = "<a rel='nofollow' class='comment-reply-link' href='" . get_the_permalink($post->ID) . "#$respond_id' onclick='return addComment.moveForm(\"$add_below-$post->ID\", \"0\", \"$respond_id\", \"$post->ID\")'>$reply_text</a>";
    11131113        }
    11141114        return apply_filters('post_comments_link', $before . $link . $after, $post);
    11151115}
     
    16241624        $defaults = array(
    16251625                'fields'               => apply_filters( 'comment_form_default_fields', $fields ),
    16261626                'comment_field'        => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
    1627                 'must_log_in'          => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
    1628                 'logged_in_as'         => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
     1627                'must_log_in'          => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_the_permalink( $post_id ) ) ) ) . '</p>',
     1628                'logged_in_as'         => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_the_permalink( $post_id ) ) ) ) . '</p>',
    16291629                'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>',
    16301630                'comment_notes_after'  => '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>',
    16311631                'id_form'              => 'commentform',
  • wp-includes/category-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    457457                }
    458458        } else {
    459459                if ( ! empty( $show_option_all ) ) {
    460                         $posts_page = ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) ) ? get_permalink( get_option( 'page_for_posts' ) ) : home_url( '/' );
     460                        $posts_page = ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) ) ? get_the_permalink( get_option( 'page_for_posts' ) ) : home_url( '/' );
    461461                        $posts_page = esc_url( $posts_page );
    462462                        if ( 'list' == $style )
    463463                                $output .= "<li><a href='$posts_page'>$show_option_all</a></li>";
  • wp-includes/comment.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    18541854                if ( $pingback_server_url ) {
    18551855                        @ set_time_limit( 60 );
    18561856                         // Now, the RPC call
    1857                         $pagelinkedfrom = get_permalink($post_ID);
     1857                        $pagelinkedfrom = get_the_permalink($post_ID);
    18581858
    18591859                        // using a timeout of 3 seconds should be enough to cover slow servers
    18601860                        $client = new WP_HTTP_IXR_Client($pingback_server_url);
     
    19081908        $options['timeout'] = 4;
    19091909        $options['body'] = array(
    19101910                'title' => $title,
    1911                 'url' => get_permalink($ID),
     1911                'url' => get_the_permalink($ID),
    19121912                'blog_name' => get_option('blogname'),
    19131913                'excerpt' => $excerpt
    19141914        );
  • wp-includes/theme-compat/comments-popup.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    6868
    6969<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    7070<?php if ( $user_ID ) : ?>
    71         <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out &raquo;</a>'), get_edit_user_link(), $user_identity, wp_logout_url(get_permalink())); ?></p>
     71        <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out &raquo;</a>'), get_edit_user_link(), $user_identity, wp_logout_url(get_the_permalink())); ?></p>
    7272<?php else : ?>
    7373        <p>
    7474          <input type="text" name="author" id="author" class="textarea" value="<?php echo esc_attr($comment_author); ?>" size="28" tabindex="1" />
  • wp-admin/includes/class-wp-posts-list-table.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    587587                                if ( $post_type_object->public ) {
    588588                                        if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) {
    589589                                                if ( $can_edit_post )
    590                                                         $actions['view'] = '<a href="' . esc_url( apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ) . '" title="' . esc_attr( sprintf( __( 'Preview &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>';
     590                                                        $actions['view'] = '<a href="' . esc_url( apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', get_the_permalink( $post->ID ) ) ) ) . '" title="' . esc_attr( sprintf( __( 'Preview &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>';
    591591                                        } elseif ( 'trash' != $post->post_status ) {
    592                                                 $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>';
     592                                                $actions['view'] = '<a href="' . get_the_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>';
    593593                                        }
    594594                                }
    595595
  • wp-includes/post-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    220220                        $output .= '<span id="more-' . $post->ID . '"></span>' . $content[1];
    221221                } else {
    222222                        if ( ! empty( $more_link_text ) )
    223                                 $output .= apply_filters( 'the_content_more_link', ' <a href="' . get_permalink() . "#more-{$post->ID}\" class=\"more-link\">$more_link_text</a>", $more_link_text );
     223                                $output .= apply_filters( 'the_content_more_link', ' <a href="' . get_the_permalink() . "#more-{$post->ID}\" class=\"more-link\">$more_link_text</a>", $more_link_text );
    224224                        $output = force_balance_tags( $output );
    225225                }
    226226        }
     
    706706        $post = get_post();
    707707
    708708        if ( 1 == $i ) {
    709                 $url = get_permalink();
     709                $url = get_the_permalink();
    710710        } else {
    711711                if ( '' == get_option('permalink_structure') || in_array($post->post_status, array('draft', 'pending')) )
    712                         $url = add_query_arg( 'page', $i, get_permalink() );
     712                        $url = add_query_arg( 'page', $i, get_the_permalink() );
    713713                elseif ( 'page' == get_option('show_on_front') && get_option('page_on_front') == $post->ID )
    714                         $url = trailingslashit(get_permalink()) . user_trailingslashit("$wp_rewrite->pagination_base/" . $i, 'single_paged');
     714                        $url = trailingslashit(get_the_permalink()) . user_trailingslashit("$wp_rewrite->pagination_base/" . $i, 'single_paged');
    715715                else
    716                         $url = trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged');
     716                        $url = trailingslashit(get_the_permalink()) . user_trailingslashit($i, 'single_paged');
    717717        }
    718718
    719719        return '<a href="' . esc_url( $url ) . '">';
     
    10581058
    10591059                $css_class = implode( ' ', apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page ) );
    10601060
    1061                 $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_permalink($page->ID) . '">' . $link_before . apply_filters( 'the_title', $page->post_title, $page->ID ) . $link_after . '</a>';
     1061                $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_the_permalink($page->ID) . '">' . $link_before . apply_filters( 'the_title', $page->post_title, $page->ID ) . $link_after . '</a>';
    10621062
    10631063                if ( !empty($show_date) ) {
    10641064                        if ( 'modified' == $show_date )
  • wp-admin/edit-form-advanced.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    3232$messages = array();
    3333$messages['post'] = array(
    3434         0 => '', // Unused. Messages start at index 1.
    35          1 => sprintf( __('Post updated. <a href="%s">View post</a>'), esc_url( get_permalink($post_ID) ) ),
     35         1 => sprintf( __('Post updated. <a href="%s">View post</a>'), esc_url( get_the_permalink($post_ID) ) ),
    3636         2 => __('Custom field updated.'),
    3737         3 => __('Custom field deleted.'),
    3838         4 => __('Post updated.'),
    3939        /* translators: %s: date and time of the revision */
    4040         5 => isset($_GET['revision']) ? sprintf( __('Post restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
    41          6 => sprintf( __('Post published. <a href="%s">View post</a>'), esc_url( get_permalink($post_ID) ) ),
     41         6 => sprintf( __('Post published. <a href="%s">View post</a>'), esc_url( get_the_permalink($post_ID) ) ),
    4242         7 => __('Post saved.'),
    43          8 => sprintf( __('Post submitted. <a target="_blank" href="%s">Preview post</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
     43         8 => sprintf( __('Post submitted. <a target="_blank" href="%s">Preview post</a>'), esc_url( add_query_arg( 'preview', 'true', get_the_permalink($post_ID) ) ) ),
    4444         9 => sprintf( __('Post scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview post</a>'),
    4545                // translators: Publish box date format, see http://php.net/date
    46                 date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
    47         10 => sprintf( __('Post draft updated. <a target="_blank" href="%s">Preview post</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
     46                date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_the_permalink($post_ID) ) ),
     47        10 => sprintf( __('Post draft updated. <a target="_blank" href="%s">Preview post</a>'), esc_url( add_query_arg( 'preview', 'true', get_the_permalink($post_ID) ) ) ),
    4848);
    4949$messages['page'] = array(
    5050         0 => '', // Unused. Messages start at index 1.
    51          1 => sprintf( __('Page updated. <a href="%s">View page</a>'), esc_url( get_permalink($post_ID) ) ),
     51         1 => sprintf( __('Page updated. <a href="%s">View page</a>'), esc_url( get_the_permalink($post_ID) ) ),
    5252         2 => __('Custom field updated.'),
    5353         3 => __('Custom field deleted.'),
    5454         4 => __('Page updated.'),
    5555         5 => isset($_GET['revision']) ? sprintf( __('Page restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
    56          6 => sprintf( __('Page published. <a href="%s">View page</a>'), esc_url( get_permalink($post_ID) ) ),
     56         6 => sprintf( __('Page published. <a href="%s">View page</a>'), esc_url( get_the_permalink($post_ID) ) ),
    5757         7 => __('Page saved.'),
    58          8 => sprintf( __('Page submitted. <a target="_blank" href="%s">Preview page</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
    59          9 => sprintf( __('Page scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview page</a>'), date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
    60         10 => sprintf( __('Page draft updated. <a target="_blank" href="%s">Preview page</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
     58         8 => sprintf( __('Page submitted. <a target="_blank" href="%s">Preview page</a>'), esc_url( add_query_arg( 'preview', 'true', get_the_permalink($post_ID) ) ) ),
     59         9 => sprintf( __('Page scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview page</a>'), date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_the_permalink($post_ID) ) ),
     60        10 => sprintf( __('Page draft updated. <a target="_blank" href="%s">Preview page</a>'), esc_url( add_query_arg( 'preview', 'true', get_the_permalink($post_ID) ) ) ),
    6161);
    6262$messages['attachment'] = array_fill( 1, 10, __( 'Media attachment updated.' ) ); // Hack, for now.
    6363
  • wp-admin/includes/media.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    11891189                $image_edit_button = "<input type='button' id='imgedit-open-btn-$post->ID' onclick='imageEdit.open( $post->ID, \"$nonce\" )' class='button' value='" . esc_attr__( 'Edit Image' ) . "' /> <span class='spinner'></span>";
    11901190        }
    11911191
    1192         $attachment_url = get_permalink( $attachment_id );
     1192        $attachment_url = get_the_permalink( $attachment_id );
    11931193
    11941194        $item = "
    11951195        $type_html
  • wp-admin/includes/dashboard.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    461461
    462462        $drafts = false;
    463463        if ( 'post' === strtolower( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['action'] ) && 0 === strpos( $_POST['action'], 'post-quickpress' ) && (int) $_POST['post_ID'] ) {
    464                 $view = get_permalink( $_POST['post_ID'] );
     464                $view = get_the_permalink( $_POST['post_ID'] );
    465465                $edit = esc_url( get_edit_post_link( $_POST['post_ID'] ) );
    466466                if ( 'post-quickpress-publish' == $_POST['action'] ) {
    467467                        if ( current_user_can('publish_posts') )
  • wp-includes/query.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    36123612                if ( ! $id )
    36133613                        return;
    36143614
    3615                 $link = get_permalink($id);
     3615                $link = get_the_permalink($id);
    36163616
    36173617                if ( !$link )
    36183618                        return;
  • wp-includes/general-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    10551055                if ( $results ) {
    10561056                        foreach ( (array) $results as $result ) {
    10571057                                if ( $result->post_date != '0000-00-00 00:00:00' ) {
    1058                                         $url  = get_permalink( $result );
     1058                                        $url  = get_the_permalink( $result );
    10591059                                        if ( $result->post_title )
    10601060                                                $text = strip_tags( apply_filters( 'the_title', $result->post_title, $result->ID ) );
    10611061                                        else
  • wp-admin/includes/meta-boxes.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    3838<div id="preview-action">
    3939<?php
    4040if ( 'publish' == $post->post_status ) {
    41         $preview_link = esc_url( get_permalink( $post->ID ) );
     41        $preview_link = esc_url( get_the_permalink( $post->ID ) );
    4242        $preview_button = __( 'Preview Changes' );
    4343} else {
    44         $preview_link = set_url_scheme( get_permalink( $post->ID ) );
     44        $preview_link = set_url_scheme( get_the_permalink( $post->ID ) );
    4545        $preview_link = esc_url( apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', $preview_link ) ) );
    4646        $preview_button = __( 'Preview' );
    4747}
     48 No newline at end of file
  • wp-includes/class-wp-editor.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    800800                        $results[] = array(
    801801                                'ID' => $post->ID,
    802802                                'title' => trim( esc_html( strip_tags( get_the_title( $post ) ) ) ),
    803                                 'permalink' => get_permalink( $post->ID ),
     803                                'permalink' => get_the_permalink( $post->ID ),
    804804                                'info' => $info,
    805805                        );
    806806                }
  • wp-admin/press-this.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    574574                        $post_ID = intval($posted); ?>
    575575                        <div id="message" class="updated">
    576576                        <p><strong><?php _e('Your post has been saved.'); ?></strong>
    577                         <a onclick="window.opener.location.replace(this.href); window.close();" href="<?php echo get_permalink($post_ID); ?>"><?php _e('View post'); ?></a>
     577                        <a onclick="window.opener.location.replace(this.href); window.close();" href="<?php echo get_the_permalink($post_ID); ?>"><?php _e('View post'); ?></a>
    578578                        | <a href="<?php echo get_edit_post_link( $post_ID ); ?>" onclick="window.opener.location.replace(this.href); window.close();"><?php _e('Edit Post'); ?></a>
    579579                        | <a href="#" onclick="window.close();"><?php _e('Close Window'); ?></a></p>
    580580                        </div>
  • wp-includes/feed.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    188188 * @uses apply_filters() Call 'the_permalink_rss' on the post permalink
    189189 */
    190190function the_permalink_rss() {
    191         echo esc_url( apply_filters('the_permalink_rss', get_permalink() ));
     191        echo esc_url( apply_filters('the_permalink_rss', get_the_permalink() ));
    192192}
    193193
    194194/**
  • wp-includes/post.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    28452845
    28462846        // Set GUID
    28472847        if ( !$update && '' == $current_guid )
    2848                 $wpdb->update( $wpdb->posts, array( 'guid' => get_permalink( $post_ID ) ), $where );
     2848                $wpdb->update( $wpdb->posts, array( 'guid' => get_the_permalink( $post_ID ) ), $where );
    28492849
    28502850        clean_post_cache( $post_ID );
    28512851
     
    47574757        if ( $old_status != 'publish' && $new_status == 'publish' ) {
    47584758                // Reset GUID if transitioning to publish and it is empty
    47594759                if ( '' == get_the_guid($post->ID) )
    4760                         $wpdb->update( $wpdb->posts, array( 'guid' => get_permalink( $post->ID ) ), array( 'ID' => $post->ID ) );
     4760                        $wpdb->update( $wpdb->posts, array( 'guid' => get_the_permalink( $post->ID ) ), array( 'ID' => $post->ID ) );
    47614761                do_action('private_to_published', $post->ID);  // Deprecated, use private_to_publish
    47624762        }
    47634763
  • wp-includes/pluggable.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    10451045                /* translators: 1: blog name, 2: post title */
    10461046                $subject = sprintf( __('[%1$s] Pingback: "%2$s"'), $blogname, $post->post_title );
    10471047        }
    1048         $notify_message .= get_permalink($comment->comment_post_ID) . "#comments\r\n\r\n";
    1049         $notify_message .= sprintf( __('Permalink: %s'), get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment_id ) . "\r\n";
     1048        $notify_message .= get_the_permalink($comment->comment_post_ID) . "#comments\r\n\r\n";
     1049        $notify_message .= sprintf( __('Permalink: %s'), get_the_permalink( $comment->comment_post_ID ) . '#comment-' . $comment_id ) . "\r\n";
    10501050        if ( EMPTY_TRASH_DAYS )
    10511051                $notify_message .= sprintf( __('Trash it: %s'), admin_url("comment.php?action=trash&c=$comment_id") ) . "\r\n";
    10521052        else
     
    11161116        {
    11171117                case 'trackback':
    11181118                        $notify_message  = sprintf( __('A new trackback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n";
    1119                         $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n";
     1119                        $notify_message .= get_the_permalink($comment->comment_post_ID) . "\r\n\r\n";
    11201120                        $notify_message .= sprintf( __('Website : %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    11211121                        $notify_message .= sprintf( __('URL    : %s'), $comment->comment_author_url ) . "\r\n";
    11221122                        $notify_message .= __('Trackback excerpt: ') . "\r\n" . $comment->comment_content . "\r\n\r\n";
    11231123                        break;
    11241124                case 'pingback':
    11251125                        $notify_message  = sprintf( __('A new pingback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n";
    1126                         $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n";
     1126                        $notify_message .= get_the_permalink($comment->comment_post_ID) . "\r\n\r\n";
    11271127                        $notify_message .= sprintf( __('Website : %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    11281128                        $notify_message .= sprintf( __('URL    : %s'), $comment->comment_author_url ) . "\r\n";
    11291129                        $notify_message .= __('Pingback excerpt: ') . "\r\n" . $comment->comment_content . "\r\n\r\n";
    11301130                        break;
    11311131                default: //Comments
    11321132                        $notify_message  = sprintf( __('A new comment on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n";
    1133                         $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n";
     1133                        $notify_message .= get_the_permalink($comment->comment_post_ID) . "\r\n\r\n";
    11341134                        $notify_message .= sprintf( __('Author : %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    11351135                        $notify_message .= sprintf( __('E-mail : %s'), $comment->comment_author_email ) . "\r\n";
    11361136                        $notify_message .= sprintf( __('URL    : %s'), $comment->comment_author_url ) . "\r\n";
  • wp-admin/includes/class-wp-media-list-table.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    404404                                        $delete_ays = !MEDIA_TRASH ? " onclick='return showNotice.warn();'" : '';
    405405                                        $actions['delete'] = "<a class='submitdelete'$delete_ays href='" . wp_nonce_url( "post.php?action=delete&amp;post=$post->ID", 'delete-post_' . $post->ID ) . "'>" . __( 'Delete Permanently' ) . "</a>";
    406406                                }
    407                         $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $att_title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>';
     407                        $actions['view'] = '<a href="' . get_the_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $att_title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>';
    408408                        if ( current_user_can( 'edit_post', $post->ID ) )
    409409                                $actions['attach'] = '<a href="#the-list" onclick="findPosts.open( \'media[]\',\''.$post->ID.'\' );return false;" class="hide-if-no-js">'.__( 'Attach' ).'</a>';
    410410                }
     
    423423                        }
    424424                        if ( !$this->is_trash ) {
    425425                                $title =_draft_or_post_title( $post->post_parent );
    426                                 $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>';
     426                                $actions['view'] = '<a href="' . get_the_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>';
    427427                        }
    428428                }
    429429
  • wp-admin/includes/ajax-actions.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    12741274function wp_ajax_get_permalink() {
    12751275        check_ajax_referer( 'getpermalink', 'getpermalinknonce' );
    12761276        $post_id = isset($_POST['post_id'])? intval($_POST['post_id']) : 0;
    1277         wp_die( add_query_arg( array( 'preview' => 'true' ), get_permalink( $post_id ) ) );
     1277        wp_die( add_query_arg( array( 'preview' => 'true' ), get_the_permalink( $post_id ) ) );
    12781278}
    12791279
    12801280function wp_ajax_sample_permalink() {
  • wp-includes/post-formats.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    907907                        $output .= '<span id="more-' . $post->ID . '"></span>' . $content[1];
    908908                } else {
    909909                        if ( ! empty( $more_link_text ) )
    910                                 $output .= apply_filters( 'the_content_more_link', ' <a href="' . get_permalink() . "#more-{$post->ID}\" class=\"more-link\">$more_link_text</a>", $more_link_text );
     910                                $output .= apply_filters( 'the_content_more_link', ' <a href="' . get_the_permalink() . "#more-{$post->ID}\" class=\"more-link\">$more_link_text</a>", $more_link_text );
    911911
    912912                        $output = force_balance_tags( $output );
    913913                }
     914 No newline at end of file
  • wp-trackback.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    7777
    7878if (empty($title) && empty($tb_url) && empty($blog_name)) {
    7979        // If it doesn't look like a trackback at all...
    80         wp_redirect(get_permalink($tb_id));
     80        wp_redirect(get_the_permalink($tb_id));
    8181        exit;
    8282}
    8383
  • wp-includes/canonical.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    8383                        if ( 'revision' == $vars->post_type && $vars->post_parent > 0 )
    8484                                $id = $vars->post_parent;
    8585
    86                         if ( $redirect_url = get_permalink($id) )
     86                        if ( $redirect_url = get_the_permalink($id) )
    8787                                $redirect['query'] = _remove_qs_args_if_not_in_url( $redirect['query'], array( 'p', 'page_id', 'attachment_id', 'pagename', 'name', 'post_type' ), $redirect_url );
    8888                }
    8989        }
     
    9696                if ( $id && $redirect_post = get_post($id) ) {
    9797                        $post_type_obj = get_post_type_object($redirect_post->post_type);
    9898                        if ( $post_type_obj->public ) {
    99                                 $redirect_url = get_permalink($redirect_post);
     99                                $redirect_url = get_the_permalink($redirect_post);
    100100                                $redirect['query'] = _remove_qs_args_if_not_in_url( $redirect['query'], array( 'p', 'page_id', 'attachment_id', 'pagename', 'name', 'post_type' ), $redirect_url );
    101101                        }
    102102                }
     
    113113                        if ( $redirect_url = get_attachment_link(get_query_var('attachment_id')) )
    114114                                $redirect['query'] = remove_query_arg('attachment_id', $redirect['query']);
    115115                } elseif ( is_single() && !empty($_GET['p']) && ! $redirect_url ) {
    116                         if ( $redirect_url = get_permalink(get_query_var('p')) )
     116                        if ( $redirect_url = get_the_permalink(get_query_var('p')) )
    117117                                $redirect['query'] = remove_query_arg(array('p', 'post_type'), $redirect['query']);
    118118                } elseif ( is_single() && !empty($_GET['name'])  && ! $redirect_url ) {
    119                         if ( $redirect_url = get_permalink( $wp_query->get_queried_object_id() ) )
     119                        if ( $redirect_url = get_the_permalink( $wp_query->get_queried_object_id() ) )
    120120                                $redirect['query'] = remove_query_arg('name', $redirect['query']);
    121121                } elseif ( is_page() && !empty($_GET['page_id']) && ! $redirect_url ) {
    122                         if ( $redirect_url = get_permalink(get_query_var('page_id')) )
     122                        if ( $redirect_url = get_the_permalink(get_query_var('page_id')) )
    123123                                $redirect['query'] = remove_query_arg('page_id', $redirect['query']);
    124124                } elseif ( is_page() && !is_feed() && isset($wp_query->queried_object) && 'page' == get_option('show_on_front') && $wp_query->queried_object->ID == get_option('page_on_front')  && ! $redirect_url ) {
    125125                        $redirect_url = home_url('/');
    126126                } elseif ( is_home() && !empty($_GET['page_id']) && 'page' == get_option('show_on_front') && get_query_var('page_id') == get_option('page_for_posts')  && ! $redirect_url ) {
    127                         if ( $redirect_url = get_permalink(get_option('page_for_posts')) )
     127                        if ( $redirect_url = get_the_permalink(get_option('page_for_posts')) )
    128128                                $redirect['query'] = remove_query_arg('page_id', $redirect['query']);
    129129                } elseif ( !empty($_GET['m']) && ( is_year() || is_month() || is_day() ) ) {
    130130                        $m = get_query_var('m');
     
    207207                        $category = get_category_by_path( $cat );
    208208                        $post_terms = wp_get_object_terms($wp_query->get_queried_object_id(), 'category', array('fields' => 'tt_ids'));
    209209                        if ( (!$category || is_wp_error($category)) || ( !is_wp_error($post_terms) && !empty($post_terms) && !in_array($category->term_taxonomy_id, $post_terms) ) )
    210                                 $redirect_url = get_permalink($wp_query->get_queried_object_id());
     210                                $redirect_url = get_the_permalink($wp_query->get_queried_object_id());
    211211                }
    212212
    213213                // Post Paging
    214214                if ( is_singular() && ! is_front_page() && get_query_var('page') ) {
    215215                        if ( !$redirect_url )
    216                                 $redirect_url = get_permalink( get_queried_object_id() );
     216                                $redirect_url = get_the_permalink( get_queried_object_id() );
    217217                        $redirect_url = trailingslashit( $redirect_url ) . user_trailingslashit( get_query_var( 'page' ), 'single_paged' );
    218218                        $redirect['query'] = remove_query_arg( 'page', $redirect['query'] );
    219219                }
     
    495495                if ( get_query_var( 'feed' ) )
    496496                        return get_post_comments_feed_link( $post_id, get_query_var( 'feed' ) );
    497497                elseif ( get_query_var( 'page' ) )
    498                         return trailingslashit( get_permalink( $post_id ) ) . user_trailingslashit( get_query_var( 'page' ), 'single_paged' );
     498                        return trailingslashit( get_the_permalink( $post_id ) ) . user_trailingslashit( get_query_var( 'page' ), 'single_paged' );
    499499                else
    500                         return get_permalink( $post_id );
     500                        return get_the_permalink( $post_id );
    501501        }
    502502
    503503        return false;
  • wp-admin/includes/upgrade.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    557557                        $post_title = addslashes(deslash($post->post_title));
    558558                        $post_excerpt = addslashes(deslash($post->post_excerpt));
    559559                        if ( empty($post->guid) )
    560                                 $guid = get_permalink($post->ID);
     560                                $guid = get_the_permalink($post->ID);
    561561                        else
    562562                                $guid = $post->guid;
    563563
  • wp-includes/ms-functions.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    311311 */
    312312function get_blog_permalink( $blog_id, $post_id ) {
    313313        switch_to_blog( $blog_id );
    314         $link = get_permalink( $post_id );
     314        $link = get_the_permalink( $post_id );
    315315        restore_current_blog();
    316316
    317317        return $link;
  • wp-includes/deprecated.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    147147        if ( !$post )
    148148                return;
    149149
    150         $string = '<a href="'.get_permalink($post->ID).'">'.$previous;
     150        $string = '<a href="'.get_the_permalink($post->ID).'">'.$previous;
    151151        if ( 'yes' == $title )
    152152                $string .= apply_filters('the_title', $post->post_title, $post->ID);
    153153        $string .= '</a>';
     
    183183        if ( !$post     )
    184184                return;
    185185
    186         $string = '<a href="'.get_permalink($post->ID).'">'.$next;
     186        $string = '<a href="'.get_the_permalink($post->ID).'">'.$next;
    187187        if ( 'yes' == $title )
    188188                $string .= apply_filters('the_title', $post->post_title, $post->ID);
    189189        $string .= '</a>';
     
    27392739
    27402740        $link = $start ? "<link rel='start' title='" : "<link rel='end' title='";
    27412741        $link .= esc_attr($title);
    2742         $link .= "' href='" . get_permalink($post) . "' />\n";
     2742        $link .= "' href='" . get_the_permalink($post) . "' />\n";
    27432743
    27442744        $boundary = $start ? 'start' : 'end';
    27452745        return apply_filters( "{$boundary}_post_rel_link", $link );
     
    28142814
    28152815        $link = "<link rel='up' title='";
    28162816        $link .= esc_attr( $title );
    2817         $link .= "' href='" . get_permalink($post) . "' />\n";
     2817        $link .= "' href='" . get_the_permalink($post) . "' />\n";
    28182818
    28192819        return apply_filters( "parent_post_rel_link", $link );
    28202820}
  • wp-includes/nav-menu.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    594594                                        $menu_item->_invalid = true;
    595595                                }
    596596
    597                                 $menu_item->url = get_permalink( $menu_item->object_id );
     597                                $menu_item->url = get_the_permalink( $menu_item->object_id );
    598598
    599599                                $original_object = get_post( $menu_item->object_id );
    600600                                $original_title = $original_object->post_title;
     
    643643                        $menu_item->type_label = $object->labels->singular_name;
    644644
    645645                        $menu_item->title = $menu_item->post_title;
    646                         $menu_item->url = get_permalink( $menu_item->ID );
     646                        $menu_item->url = get_the_permalink( $menu_item->ID );
    647647                        $menu_item->target = '';
    648648
    649649                        $menu_item->attr_title = apply_filters( 'nav_menu_attr_title', '' );
  • wp-admin/includes/class-wp-comments-list-table.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    504504                $this->comments_bubble( $post->ID, $pending_comments );
    505505                echo '</span> ';
    506506                $post_type_object = get_post_type_object( $post->post_type );
    507                 echo "<a href='" . get_permalink( $post->ID ) . "'>" . $post_type_object->labels->view_item . '</a>';
     507                echo "<a href='" . get_the_permalink( $post->ID ) . "'>" . $post_type_object->labels->view_item . '</a>';
    508508                echo '</div>';
    509509                if ( 'attachment' == $post->post_type && ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) )
    510510                        echo $thumb;
  • wp-admin/includes/post.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    995995        $original_date = $post->post_date;
    996996        $original_name = $post->post_name;
    997997
    998         // Hack: get_permalink would return ugly permalink for
     998        // Hack: get_the_permalink would return ugly permalink for
    999999        // drafts, so we will fake, that our post is published
    10001000        if ( in_array($post->post_status, array('draft', 'pending')) ) {
    10011001                $post->post_status = 'publish';
     
    10111011
    10121012        $post->filter = 'sample';
    10131013
    1014         $permalink = get_permalink($post, true);
     1014        $permalink = get_the_permalink($post, true);
    10151015
    10161016        // Replace custom post_type Token with generic pagename token for ease of use.
    10171017        $permalink = str_replace("%$post->post_type%", '%pagename%', $permalink);
     
    12121212        <?php
    12131213
    12141214        if ( $locked ) {
    1215                 $preview_link = set_url_scheme( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) );
     1215                $preview_link = set_url_scheme( add_query_arg( 'preview', 'true', get_the_permalink( $post->ID ) ) );
    12161216
    12171217                if ( 'publish' == $post->post_status || $user->ID != $post->post_author ) {
    12181218                        // Latest content is in autosave
     
    13781378                wp_die( $id->get_error_message() );
    13791379
    13801380        if ( $_POST['post_status'] == 'draft' && $user_id == $post->post_author ) {
    1381                 $url = add_query_arg( 'preview', 'true', get_permalink($id) );
     1381                $url = add_query_arg( 'preview', 'true', get_the_permalink($id) );
    13821382        } else {
    13831383                $nonce = wp_create_nonce('post_preview_' . $id);
    1384                 $url = add_query_arg( array( 'preview' => 'true', 'preview_id' => $id, 'preview_nonce' => $nonce ), get_permalink($id) );
     1384                $url = add_query_arg( array( 'preview' => 'true', 'preview_id' => $id, 'preview_nonce' => $nonce ), get_the_permalink($id) );
    13851385        }
    13861386
    13871387        return apply_filters( 'preview_post_link', $url );
  • wp-includes/admin-bar.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    438438                        $wp_admin_bar->add_menu( array(
    439439                                'id' => 'view',
    440440                                'title' => $post_type_object->labels->view_item,
    441                                 'href' => get_permalink( $post->ID )
     441                                'href' => get_the_permalink( $post->ID )
    442442                        ) );
    443443                } elseif ( 'edit-tags' == $current_screen->base
    444444                        && isset( $tag ) && is_object( $tag )
  • wp-includes/theme-compat/comments.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    6262</div>
    6363
    6464<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
    65 <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), wp_login_url( get_permalink() )); ?></p>
     65<p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), wp_login_url( get_the_permalink() )); ?></p>
    6666<?php else : ?>
    6767
    6868<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    6969
    7070<?php if ( is_user_logged_in() ) : ?>
    7171
    72 <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.'), get_edit_user_link(), $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php esc_attr_e('Log out of this account'); ?>"><?php _e('Log out &raquo;'); ?></a></p>
     72<p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.'), get_edit_user_link(), $user_identity); ?> <a href="<?php echo wp_logout_url(get_the_permalink()); ?>" title="<?php esc_attr_e('Log out of this account'); ?>"><?php _e('Log out &raquo;'); ?></a></p>
    7373
    7474<?php else : ?>
    7575