From 4cd1b1c3a06fa2ac86f2979a6cbac46bd2337918 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 20 Jul 2008 04:46:59 +0000 Subject: [PATCH] Make get_edit_post_link() and get_edit_comment_link() SSL aware. Props robertaccettura. fixes #7359 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@8380 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/link-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 8f1d27f0d9..76012ce2a7 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -479,7 +479,7 @@ function get_edit_post_link( $id = 0, $context = 'display' ) { break; endswitch; - return apply_filters( 'get_edit_post_link', get_bloginfo( 'wpurl' ) . "/wp-admin/$file.php?{$action}$var=$post->ID", $post->ID ); + return apply_filters( 'get_edit_post_link', admin_url("$file.php?{$action}$var=$post->ID"), $post->ID ); } function edit_post_link( $link = 'Edit This', $before = '', $after = '' ) { @@ -509,7 +509,7 @@ function get_edit_comment_link( $comment_id = 0 ) { return; } - $location = get_bloginfo( 'wpurl' ) . '/wp-admin/comment.php?action=editcomment&c=' . $comment->comment_ID; + $location = admin_url('comment.php?action=editcomment&c=') . $comment->comment_ID; return apply_filters( 'get_edit_comment_link', $location ); }