Make WordPress Core


Ignore:
Timestamp:
08/30/2006 09:46:31 PM (20 years ago)
Author:
ryan
Message:

Use get_option instead of get_settings. Just 'cause.

File:
1 edited

Legend:

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

    r3985 r4144  
    6363        echo "<p>" . __('Are you sure you want to do that?') . "</p>\n";
    6464
    65         echo "<form action='".get_settings('siteurl')."/wp-admin/comment.php' method='get'>\n";
     65        echo "<form action='".get_option('siteurl')."/wp-admin/comment.php' method='get'>\n";
    6666        wp_nonce_field($nonce_action);
    6767        echo "<input type='hidden' name='action' value='$formaction' />\n";
    … …  
    7373        echo "<input type='submit' value='" . __('Yes') . "' />";
    7474        echo "&nbsp;&nbsp;";
    75         echo "<input type='button' value='" . __('No') . "' onclick=\"self.location='". get_settings('siteurl') ."/wp-admin/edit-comments.php';\" />\n";
     75        echo "<input type='button' value='" . __('No') . "' onclick=\"self.location='". get_option('siteurl') ."/wp-admin/edit-comments.php';\" />\n";
    7676        echo "</form>\n";
    7777        echo "</div>\n";
    … …  
    107107                wp_redirect(wp_get_referer());
    108108        } else {
    109                 wp_redirect(get_settings('siteurl') .'/wp-admin/edit-comments.php');
     109                wp_redirect(get_option('siteurl') .'/wp-admin/edit-comments.php');
    110110        }
    111111        exit();
    … …  
    134134                wp_redirect(wp_get_referer());
    135135        } else {
    136                 wp_redirect(get_settings('siteurl') .'/wp-admin/edit.php?p='.$p.'&c=1#comments');
     136                wp_redirect(get_option('siteurl') .'/wp-admin/edit.php?p='.$p.'&c=1#comments');
    137137        }
    138138        exit();
    … …  
    157157
    158158        wp_set_comment_status($comment->comment_ID, "approve");
    159         if (get_settings("comments_notify") == true) {
     159        if (get_option("comments_notify") == true) {
    160160                wp_notify_postauthor($comment->comment_ID);
    161161        }
    … …  
    165165                wp_redirect(wp_get_referer());
    166166        } else {
    167                 wp_redirect(get_settings('siteurl') .'/wp-admin/edit.php?p='.$p.'&c=1#comments');
     167                wp_redirect(get_option('siteurl') .'/wp-admin/edit.php?p='.$p.'&c=1#comments');
    168168        }
    169169        exit();
Note: See TracChangeset for help on using the changeset viewer.