mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Make get_edit_post_link() and get_edit_comment_link() SSL aware. Props robertaccettura. fixes #7359 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a890785907
commit
a030bdbd5d
@ -479,7 +479,7 @@ function get_edit_post_link( $id = 0, $context = 'display' ) {
|
|||||||
break;
|
break;
|
||||||
endswitch;
|
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 = '' ) {
|
function edit_post_link( $link = 'Edit This', $before = '', $after = '' ) {
|
||||||
@ -509,7 +509,7 @@ function get_edit_comment_link( $comment_id = 0 ) {
|
|||||||
return;
|
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 );
|
return apply_filters( 'get_edit_comment_link', $location );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user