Title: Gingko_fr's Replies | WordPress.org

---

# Gingko_fr

  [  ](https://wordpress.org/support/users/gingko_fr/)

 *   [Profile](https://wordpress.org/support/users/gingko_fr/)
 *   [Topics Started](https://wordpress.org/support/users/gingko_fr/topics/)
 *   [Replies Created](https://wordpress.org/support/users/gingko_fr/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/gingko_fr/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/gingko_fr/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/gingko_fr/engagements/)
 *   [Favorites](https://wordpress.org/support/users/gingko_fr/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Maintenance] Bug 2.7.1](https://wordpress.org/support/topic/bug-271/)
 *  [Gingko_fr](https://wordpress.org/support/users/gingko_fr/)
 * (@gingko_fr)
 * [10 years ago](https://wordpress.org/support/topic/bug-271/#post-7255964)
 * In the meantime, I looked in the code for trying to find the error.
 * This seems to be due do the “reset_pass_url” function in `wp-content/plugins/
   maintenance/load/functions.php` filter, which does not return the original value
   in its first argument which it doesn’t even have.
 * I modified the file, lines 296 to 303, the following ways and now it seems to
   work :
 *     ```
       function reset_pass_url($arg) {
       	include_once(ABSPATH . 'wp-admin/includes/plugin.php');
       	if (is_plugin_active('woocommerce/woocommerce.php')) {
       		$siteURL = get_option('siteurl');
       		return "{$siteURL}/wp-login.php?action=lostpassword";
       	}
       	return $arg;
       }
       add_filter( 'lostpassword_url',  'reset_pass_url', 999, 1 );
       ```
   
 * I added the missing argument and returned it at the end.

Viewing 1 replies (of 1 total)