Making WordPress.org


Ignore:
Timestamp:
12/16/2021 03:29:41 AM (2 years ago)
Author:
dd32
Message:

Login: Replace the call to wp_login_form() with a static form so that we can customise the content.

wp_login_form() isn't the same as wp-login.php and isn't as easy to customise; By removing it we'll be able to add things that wp-login.php has such as a show password button.

See #5850.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php

    r11378 r11379  
    464464}
    465465
    466 // This is the action in the top of `wp_login_form()`, which is not used on wp-login.php, see below.
    467 function wporg_login_form_top( $message ) {
    468     $message .= '<p class="intro">' . wporg_login_wporg_is_starpress() . '</p>';
    469 
    470     return $message;
    471 }
    472 add_filter( 'login_form_top', 'wporg_login_form_top' );
    473 
    474466// This is the login messages, which is displayed on wp-login.php, which does not use wp_login_form() or it's actions.
    475467function wporg_login_errors_message( $errors, $redirect_to ) {
Note: See TracChangeset for help on using the changeset viewer.