WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/27/2008 05:46:01 PM (14 years ago)
Author:
ryan
Message:

First cut and better admin SSL support. see #7001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/comment.php

    r7961 r7998  
    7979<table width="100%">
    8080<tr>
    81 <td><input type='button' class="button" value='<?php _e('No'); ?>' onclick="self.location='<?php echo get_option('siteurl'); ?>/wp-admin/edit-comments.php';" /></td>
     81<td><input type='button' class="button" value='<?php _e('No'); ?>' onclick="self.location='<?php echo admin_url('edit-comments.php'); ?>" /></td>
    8282<td class="textright"><input type='submit' class="button" value='<?php echo $button; ?>' /></td>
    8383</tr>
     
    147147        wp_redirect( wp_get_original_referer() );
    148148    else
    149         wp_redirect( get_option('siteurl') . '/wp-admin/edit-comments.php' );
     149        wp_redirect( admin_url('edit-comments.php') );
    150150
    151151    die;
     
    172172        wp_redirect( wp_get_referer() );
    173173    else
    174         wp_redirect( get_option('siteurl') . '/wp-admin/edit.php?p=' . absint( $comment->comment_post_ID ) . '#comments' );
     174        wp_redirect( admin_url('edit.php?p=' . absint( $comment->comment_post_ID ) . '#comments') );
    175175
    176176    exit();
     
    201201        wp_redirect( wp_get_referer() );
    202202    else
    203         wp_redirect( get_option('siteurl') . '/wp-admin/edit.php?p=' . absint( $comment->comment_post_ID ) . '#comments' );
     203        wp_redirect( admin_url('edit.php?p=' . absint( $comment->comment_post_ID ) . '#comments') );
    204204
    205205    exit();
Note: See TracChangeset for help on using the changeset viewer.