Ticket #7359: edit_links_ssl.diff
| File edit_links_ssl.diff, 849 bytes (added by , 18 years ago) |
|---|
-
link-template.php
479 479 break; 480 480 endswitch; 481 481 482 return apply_filters( 'get_edit_post_link', get_bloginfo( 'wpurl' ) . "/wp-admin/$file.php?{$action}$var=$post->ID", $post->ID );482 return apply_filters( 'get_edit_post_link', admin_url("$file.php?{$action}$var=$post->ID"), $post->ID ); 483 483 } 484 484 485 485 function edit_post_link( $link = 'Edit This', $before = '', $after = '' ) { … … 509 509 return; 510 510 } 511 511 512 $location = get_bloginfo( 'wpurl' ) . '/wp-admin/comment.php?action=editcomment&c='. $comment->comment_ID;512 $location = admin_url('comment.php?action=editcomment&c=') . $comment->comment_ID; 513 513 return apply_filters( 'get_edit_comment_link', $location ); 514 514 } 515 515