WordPress.org

Make WordPress Core

Ticket #13227: wplogin_filters.patch

File wplogin_filters.patch, 1.4 KB (added by dimadin, 4 years ago)
  • wp-login.php

     
    379379        login_header(__('Lost Password'), '<p class="message">' . __('Please enter your username or e-mail address. You will receive a new password via e-mail.') . '</p>', $errors); 
    380380 
    381381        $user_login = isset($_POST['user_login']) ? stripslashes($_POST['user_login']) : ''; 
     382        echo apply_filters('above_lostpassword_form',$message); 
    382383 
    383384?> 
    384385 
     
    457458 
    458459        $redirect_to = apply_filters( 'registration_redirect', !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '' ); 
    459460        login_header(__('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors); 
     461        echo apply_filters('above_register_form',$message); 
    460462?> 
    461463 
    462464<form name="registerform" id="registerform" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" method="post"> 
     
    573575        if ( isset($_POST['log']) ) 
    574576                $user_login = ( 'incorrect_password' == $errors->get_error_code() || 'empty_password' == $errors->get_error_code() ) ? esc_attr(stripslashes($_POST['log'])) : ''; 
    575577        $rememberme = ! empty( $_POST['rememberme'] ); 
     578        echo apply_filters('above_login_form',$message); 
    576579?> 
    577580 
    578581<form name="loginform" id="loginform" action="<?php echo site_url('wp-login.php', 'login_post') ?>" method="post">