Ticket #1155: wp-login Patch.patch
| File wp-login Patch.patch, 1.3 KB (added by , 20 years ago) |
|---|
-
C:/Documents
39 39 40 40 case 'lostpassword': 41 41 do_action('lost_password'); 42 43 if (file_exists(TEMPLATEPATH . '/lostpassword.php')) { 44 define('LOSTPAGE', true); 45 require(TEMPLATEPATH . '/lostpassword.php'); 46 } else { 42 47 ?> 43 48 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 44 49 <html xmlns="http://www.w3.org/1999/xhtml"> … … 89 94 </body> 90 95 </html> 91 96 <?php 97 } 92 98 break; 93 99 94 100 case 'retrievepassword': … … 209 216 $error = __('Your session has expired.'); 210 217 } 211 218 } 219 220 if (file_exists(TEMPLATEPATH . '/login.php')) { 221 define('LOGINPAGE', true); 222 require(TEMPLATEPATH . '/login.php'); 223 } else { 212 224 ?> 213 225 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 214 226 <html xmlns="http://www.w3.org/1999/xhtml"> … … 255 267 </body> 256 268 </html> 257 269 <?php 258 270 } 259 271 break; 260 272 } // end action switch 261 273 ?>