WordPress.org

Make WordPress Core

Ticket #1155: login_hooks.patch

File login_hooks.patch, 1.6 KB (added by ryanscheuermann, 12 years ago)

new hooks: login_head, login_pre, and login_post

  • wp-admin/wp-admin.css

     
    580580        text-align: center;
    581581}
    582582
    583 #login #log, #pwd {
     583#login #log, #pwd, #user_login, #email {
    584584        font-size: 1.7em;
    585585        width: 80%;
    586586}
  • wp-login.php

     
    5353        }
    5454        window.onload = focusit;
    5555        </script>
    56         <style type="text/css">
    57         #user_login, #email, #submit {
    58                 font-size: 1.7em;
    59         }
    60         </style>
     56        <?php do_action("login_head"); ?>
     57
    6158</head>
    6259<body>
    6360<div id="login">
    6461<h1><a href="http://wordpress.org/">WordPress</a></h1>
     62<?php do_action("login_pre"); ?>
    6563<p><?php _e('Please enter your information here. We will send you a new password.') ?></p>
    6664<?php
    6765if ($error)
     
    8583<?php endif; ?>
    8684        <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php"><?php _e('Login') ?></a></li>
    8785</ul>
     86<?php do_action("login_post"); ?>
    8887</div>
    8988</body>
    9089</html>
     
    222221        }
    223222        window.onload = focusit;
    224223        </script>
     224        <?php do_action("login_head"); ?>
    225225</head>
    226226<body>
    227227
    228228<div id="login">
    229229<h1><a href="http://wordpress.org/">WordPress</a></h1>
     230<?php do_action("login_pre"); ?>
     231
    230232<?php
    231233if ( $error )
    232234        echo "<div id='login_error'>$error</div>";
     
    250252<?php endif; ?>
    251253        <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=lostpassword" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a></li>
    252254</ul>
     255<?php do_action("login_post"); ?>
    253256</div>
    254257
    255258</body>