Make WordPress Core

Changeset 4144 for trunk/wp-register.php


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

Use get_option instead of get_settings. Just 'cause.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-register.php

    r3862 r4144  
    44
    55$action = $_REQUEST['action'];
    6 if ( !get_settings('users_can_register') )
     6if ( !get_option('users_can_register') )
    77    $action = 'disabled';
    88
     
    4545        $user_id = wp_create_user( $user_login, $password, $user_email );
    4646        if ( !$user_id )
    47             $errors['user_id'] = sprintf(__('<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a href="mailto:%s">webmaster</a> !'), get_settings('admin_email'));
     47            $errors['user_id'] = sprintf(__('<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a href="mailto:%s">webmaster</a> !'), get_option('admin_email'));
    4848        else
    4949            wp_new_user_notification($user_id, $password);
     
    5757<head>
    5858    <title>WordPress &raquo; <?php _e('Registration Complete') ?></title>
    59     <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" />
     59    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    6060    <link rel="stylesheet" href="wp-admin/wp-admin.css" type="text/css" />
    6161    <style type="text/css">
     
    8888<head>
    8989    <title>WordPress &raquo; <?php _e('Registration Form') ?></title>
    90     <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" />
     90    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    9191    <link rel="stylesheet" href="wp-admin/wp-admin.css" type="text/css" />
    9292    <style type="text/css">
     
    137137<head>
    138138    <title>WordPress &raquo; <?php _e('Registration Currently Disabled') ?></title>
    139     <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" />
     139    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    140140    <link rel="stylesheet" href="wp-admin/wp-admin.css" type="text/css">
    141141</head>
     
    146146    <h2><?php _e('Registration Disabled') ?></h2>
    147147    <p><?php _e('User registration is currently not allowed.') ?><br />
    148     <a href="<?php echo get_settings('home'); ?>/" title="<?php _e('Go back to the blog') ?>"><?php _e('Home') ?></a>
     148    <a href="<?php echo get_option('home'); ?>/" title="<?php _e('Go back to the blog') ?>"><?php _e('Home') ?></a>
    149149    </p>
    150150</div>
Note: See TracChangeset for help on using the changeset viewer.