WordPress.org

Make WordPress Core

Changeset 8381


Ignore:
Timestamp:
07/20/08 04:47:35 (6 years ago)
Author:
ryan
Message:

Make get_edit_post_link() and get_edit_comment_link() SSL aware. Props robertaccettura. fixes #7359 for 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-includes/link-template.php

    r8334 r8381  
    480480    endswitch; 
    481481     
    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 ); 
    483483} 
    484484 
     
    510510    } 
    511511 
    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; 
    513513    return apply_filters( 'get_edit_comment_link', $location ); 
    514514} 
Note: See TracChangeset for help on using the changeset viewer.