WordPress.org

Make WordPress Core

Ticket #15384: wp-login.php

File wp-login.php, 1006 bytes (added by norbertm, 10 years ago)
Line 
1<?php
2/**
3 * WordPress User Page
4 *
5 * Handles authentication, registering, resetting passwords, forgot password,
6 * and other user handling.
7 *
8 * @package WordPress
9 */
10
11/** Make sure that the WordPress bootstrap has run before continuing. */
12require( dirname(__FILE__) . '/wp-load.php' );
13
14/** Include the login class. */
15require( ABSPATH . WPINC . '/class-wp-login.php' );
16
17/** Redirects to https login if forced to use SSL. */
18WP_Login::ensure_ssl_if_required();
19
20/** Output headers. */
21nocache_headers();
22header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
23
24/** Check for move flag. */
25WP_Login::relocate_if_required();
26
27/** Test for cookies. */
28WP_Login::send_test_cookies();
29
30/** Process the request. */
31WP_Login::dispatch( $_REQUEST['action'] );
32
33/*
34// TODO possible bug in the original file instead of $errors
35if ( !$error )
36
37// TODO make sure to include the default callback
38case 'login' :
39default:
40
41// TODO why empty string vs WP_Error
42$errors = '';
43*/
44       
45?>