Making WordPress.org

Changeset 841


Ignore:
Timestamp:
09/08/2014 08:50:56 PM (11 years ago)
Author:
iandunn
Message:

Disallow Password Reset: Redirect reset requests to WordPress.org.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-disallow-password-reset.php

    r756 r841  
    77add_filter( 'allow_password_reset', '__return_false' );
    88add_filter( 'show_password_fields', '__return_false' );
     9
     10/**
     11 * Redirect users to WordPress.org to reset their passwords.
     12 *
     13 * Otherwise, there's nothing to indicate where they can reset it.
     14 */
     15function wcorg_reset_passwords_at_wporg() {
     16    wp_redirect( 'https://wordpress.org/support/bb-login.php' );
     17    die();
     18}
     19add_action( 'login_form_lostpassword', 'wcorg_reset_passwords_at_wporg' );
Note: See TracChangeset for help on using the changeset viewer.