WordPress.org

Make WordPress Core

Ticket #1155: wp-login Patch.patch

File wp-login Patch.patch, 1.3 KB (added by denney, 12 years ago)

Patched WP-Login to support "template-based" login page.

  • C:/Documents

     
    3939
    4040case 'lostpassword':
    4141do_action('lost_password');
     42
     43        if (file_exists(TEMPLATEPATH . '/lostpassword.php')) {
     44                define('LOSTPAGE', true);
     45                require(TEMPLATEPATH . '/lostpassword.php');
     46        } else {
    4247?>
    4348<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    4449<html xmlns="http://www.w3.org/1999/xhtml">
     
    8994</body>
    9095</html>
    9196<?php
     97        }
    9298break;
    9399
    94100case 'retrievepassword':
     
    209216                                $error = __('Your session has expired.');
    210217                }
    211218        }
     219
     220        if (file_exists(TEMPLATEPATH . '/login.php')) {
     221                define('LOGINPAGE', true);
     222                require(TEMPLATEPATH . '/login.php');
     223        } else {
    212224?>
    213225<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    214226<html xmlns="http://www.w3.org/1999/xhtml">
     
    255267</body>
    256268</html>
    257269<?php
    258 
     270        }
    259271break;
    260272} // end action switch
    261273?>